Niansuh commited on
Commit
dd92e46
·
verified ·
1 Parent(s): 2fd1ae9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -6,6 +6,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
6
  build-essential \
7
  && rm -rf /var/lib/apt/lists/*
8
 
 
 
 
 
9
  # Set the working directory in the container
10
  WORKDIR /app
11
 
@@ -23,4 +27,4 @@ COPY . /app
23
  EXPOSE 8001
24
 
25
  # Command to run the app with Gunicorn and Uvicorn workers
26
- CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--workers", "4", "--bind", "0.0.0.0:8001", "main:app"]
 
6
  build-essential \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
+ # Set environment variables
10
+ ENV PYTHONDONTWRITEBYTECODE=1
11
+ ENV PYTHONUNBUFFERED=1
12
+
13
  # Set the working directory in the container
14
  WORKDIR /app
15
 
 
27
  EXPOSE 8001
28
 
29
  # Command to run the app with Gunicorn and Uvicorn workers
30
+ CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--workers", "4", "--bind", "0.0.0.0:8001", "main:app"]