Compare commits
No commits in common. "b994f2272568ff4deb87c42c1dfcfe22a0ba89d6" and "bc01f4d980bd87da85fb0929212386b913368c9f" have entirely different histories.
b994f22725
...
bc01f4d980
@ -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}"
|
||||||
|
15
config.py.sample
Normal file
15
config.py.sample
Normal 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
|
@ -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
|
||||||
|
@ -7,5 +7,4 @@ os.environ['FLASK_ENV'] = 'production'
|
|||||||
loglevel = "info"
|
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"
|
|
Loading…
x
Reference in New Issue
Block a user