efnanaladagg commited on
Commit
1ddea8c
·
verified ·
1 Parent(s): 6518ac0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -9,6 +9,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
9
 
10
  COPY requirements.txt /app/requirements.txt
11
  RUN pip install --no-cache-dir -r /app/requirements.txt
 
 
 
12
 
13
  COPY src /app/src
14
  COPY artifacts /app/artifacts
@@ -18,4 +21,4 @@ ENV PYTHONPATH=/app
18
  ENV PORT=7860
19
  EXPOSE 7860
20
 
21
- CMD sh -c "uvicorn src.app.main:app --host 0.0.0.0 --port ${PORT} --log-level debug"
 
9
 
10
  COPY requirements.txt /app/requirements.txt
11
  RUN pip install --no-cache-dir -r /app/requirements.txt
12
+ COPY src /app/src
13
+ COPY artifacts /app/artifacts
14
+
15
 
16
  COPY src /app/src
17
  COPY artifacts /app/artifacts
 
21
  ENV PORT=7860
22
  EXPOSE 7860
23
 
24
+ CMD ["uvicorn", "src.app.main:app", "--host", "0.0.0.0", "--port", "7860"]