Compare commits

..

No commits in common. "b994f2272568ff4deb87c42c1dfcfe22a0ba89d6" and "bc01f4d980bd87da85fb0929212386b913368c9f" have entirely different histories.

5 changed files with 19 additions and 8 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion] [tool.bumpversion]
current_version = "1.3.22" current_version = "1.3.18"
commit = true commit = true
tag = true tag = true
tag_name = "{new_version}" tag_name = "{new_version}"

View File

@ -1 +1 @@
1.3.22 1.3.18

15
config.py.sample Normal file
View File

@ -0,0 +1,15 @@
# config.py
class Config:
DEBUG = False
BASE_URL = '' # Set your base URL here
HOST = '0.0.0.0'
PORT = 5000
OCR_ENABLED = False
TEXT_INPUT_ENABLED = False
class DevelopmentConfig(Config):
DEBUG = True
class ProductionConfig(Config):
BASE_URL = '' # Production base URL

View File

@ -20,7 +20,6 @@ WORKDIR /app
COPY --from=builder /install /usr/local COPY --from=builder /install /usr/local
COPY app.py . COPY app.py .
COPY config.py .
COPY gunicorn.conf.py . COPY gunicorn.conf.py .
COPY run.sh . COPY run.sh .
COPY VERSION . COPY VERSION .
@ -35,9 +34,7 @@ ARG VERSION
RUN echo $VERSION > VERSION RUN echo $VERSION > VERSION
# Create a non-root user # Create a non-root user
RUN useradd --create-home appuser && \ RUN useradd --create-home appuser
mkdir -p /app/tmp && \
chown -R appuser:appuser /app/tmp
USER appuser USER appuser
EXPOSE 5000 EXPOSE 5000

View File

@ -8,4 +8,3 @@ loglevel = "info"
workers = 2 workers = 2
bind = "0.0.0.0:5000" bind = "0.0.0.0:5000"
timeout = 120 timeout = 120
worker_tmp_dir = "/app/tmp"