Spaces:
Sleeping
Sleeping
Updated Dockerfile
Browse files- 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",
|
|
|
|
|
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"]
|