first commit
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt requirements-prod.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements-prod.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN useradd --create-home forge && chown -R forge:forge /app
|
||||
USER forge
|
||||
|
||||
EXPOSE 5050
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5050", "--workers", "2", "app:app"]
|
||||
Reference in New Issue
Block a user