blasisd commited on
Commit
cc644a4
·
1 Parent(s): 89cf6e8

Updated Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -1,4 +1,3 @@
1
- ARG APP_PORT
2
  FROM python:3.10.12-slim
3
 
4
  # The two following lines are requirements for the Dev Mode to be functional
@@ -10,5 +9,5 @@ COPY --chown=user ./requirements.txt requirements.txt
10
  RUN pip install --no-cache-dir --upgrade pip
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
- COPY --chown=user ./src /app
14
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", $APP_PORT]
 
 
1
  FROM python:3.10.12-slim
2
 
3
  # The two following lines are requirements for the Dev Mode to be functional
 
9
  RUN pip install --no-cache-dir --upgrade pip
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
+ COPY --chown=user ./src /app/src
13
+ CMD ["python3", "-m", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"]