NitinBot001 commited on
Commit
267c680
·
verified ·
1 Parent(s): fa833f2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -4,8 +4,6 @@ FROM python:3.11-slim
4
  # Set environment variables
5
  ENV PYTHONDONTWRITEBYTECODE 1
6
  ENV PYTHONUNBUFFERED 1
7
- ENV FLASK_APP=server.py
8
- ENV FLASK_ENV=production
9
 
10
  # Set the working directory in the container
11
  WORKDIR /app
@@ -34,4 +32,4 @@ COPY --chown=appuser:appuser . .
34
  EXPOSE 8082
35
 
36
  # Command to run the application
37
- CMD ["python", "server.py"]
 
4
  # Set environment variables
5
  ENV PYTHONDONTWRITEBYTECODE 1
6
  ENV PYTHONUNBUFFERED 1
 
 
7
 
8
  # Set the working directory in the container
9
  WORKDIR /app
 
32
  EXPOSE 8082
33
 
34
  # Command to run the application
35
+ CMD ["gunicorn", "main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8082"]