small fix

This commit is contained in:
Mateusz Gruszczyński
2026-02-26 14:27:03 +01:00
parent c57c9fd320
commit 2df9ce4547
3 changed files with 7 additions and 3 deletions

View File

@@ -3,4 +3,6 @@ MAX_FILE_SIZE=16
STATIC_CACHE_MAX_AGE=600 STATIC_CACHE_MAX_AGE=600
APP_TITLE=AIO HTML Generator APP_TITLE=AIO HTML Generator
APP_FOOTER=© 2026 Mateusz Gruszczyński APP_FOOTER=© 2026 Mateusz Gruszczyński
# do not change in prod/docker
UPLOAD_FOLDER=/tmp/uploads UPLOAD_FOLDER=/tmp/uploads

View File

@@ -4,7 +4,9 @@ WORKDIR /app
COPY requirements.txt . COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
RUN mkdir -p /tmp/uploads && chmod 777 /tmp/uploads RUN mkdir -p /tmp/uploads && \
chmod 777 /tmp/uploads && \
chmod +x entrypoint.sh
EXPOSE 5000 EXPOSE 5000
USER 1000 USER 1000
ENTRYPOINT ["./entrypoint.sh"] ENTRYPOINT ["./entrypoint.sh"]

View File

@@ -3,8 +3,8 @@ services:
build: . build: .
ports: ports:
- "4578:5000" - "4578:5000"
volumes: # volumes:
- ./uploads:/tmp/uploads # - ./uploads:/tmp/uploads
env_file: env_file:
- .env - .env
restart: unless-stopped restart: unless-stopped