Spaces:
Sleeping
Sleeping
changes in dackerfiles
Browse files- dockerfile +1 -17
dockerfile
CHANGED
|
@@ -1,19 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
# FROM python:3.9
|
| 3 |
-
|
| 4 |
-
# RUN useradd -m -u 1000 user
|
| 5 |
-
# USER user
|
| 6 |
-
# ENV PATH="/home/user/.local/bin:$PATH"
|
| 7 |
-
|
| 8 |
-
# WORKDIR /app
|
| 9 |
-
|
| 10 |
-
# COPY --chown=user ./requirements.txt requirements.txt
|
| 11 |
-
# RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 12 |
-
|
| 13 |
-
# COPY --chown=user . /app
|
| 14 |
-
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 15 |
-
|
| 16 |
-
|
| 17 |
# Use official Python image
|
| 18 |
FROM python:3.9
|
| 19 |
|
|
@@ -40,4 +24,4 @@ COPY --chown=user . /app
|
|
| 40 |
EXPOSE 7860
|
| 41 |
|
| 42 |
# Run the FastAPI app with Uvicorn
|
| 43 |
-
CMD ["uvicorn", "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Use official Python image
|
| 2 |
FROM python:3.9
|
| 3 |
|
|
|
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
# Run the FastAPI app with Uvicorn
|
| 27 |
+
CMD ["uvicorn", "src.backend.main", "--host", "0.0.0.0", "--port", "7860"]
|