Migrate Flask React template into Forge

This commit is contained in:
rob
2026-11-17 19:39:11 +00:00
parent bc6b6d26f1
commit 444406d2fc
109 changed files with 9427 additions and 13 deletions
@@ -0,0 +1,15 @@
FROM python:3.12-slim
WORKDIR /app
COPY config/requirements.txt ./config/requirements.txt
RUN pip install --no-cache-dir -r ./config/requirements.txt \
&& groupadd --gid 10001 app \
&& useradd --uid 10001 --gid app --create-home --shell /usr/sbin/nologin app
COPY . /app
ENV HOME=/home/app \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
USER app:app
EXPOSE 5000
CMD ["gunicorn", "--config", "gunicorn.conf.py", "api:app"]