This commit is contained in:
2026-03-10 15:34:22 +00:00
parent 7635caa71d
commit d641e181ba
17 changed files with 347 additions and 7 deletions

View File

@@ -13,6 +13,12 @@ COPY app/ app/
COPY templates/ templates/
COPY static/ static/
# Run as non-root user
RUN addgroup --system --gid 1000 appgroup && \
adduser --system --uid 1000 --gid 1000 --no-create-home appuser
RUN chown -R appuser:appgroup /app
USER appuser
EXPOSE 8080
CMD ["python", "-u", "app.py"]