Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
-
FROM python:3.11-slim
|
3 |
|
4 |
# Set environment variables
|
5 |
ENV PYTHONDONTWRITEBYTECODE=1
|
@@ -23,5 +23,5 @@ EXPOSE 5000
|
|
23 |
RUN adduser --disabled-password myuser
|
24 |
USER myuser
|
25 |
|
26 |
-
# Command to run the application
|
27 |
-
CMD ["
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.11-slim@sha256:5148c0e4bbb64271bca1d3322360ebf4bfb7564507ae32dd639322e4952a6b16
|
3 |
|
4 |
# Set environment variables
|
5 |
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
23 |
RUN adduser --disabled-password myuser
|
24 |
USER myuser
|
25 |
|
26 |
+
# Command to run the application using Gunicorn
|
27 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "proxy:app"]
|