Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
# Use the official Python 3.9 image
|
2 |
-
FROM python
|
3 |
|
4 |
# Set the working directory to /code
|
5 |
WORKDIR /code
|
6 |
|
7 |
-
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
8 |
# Copy the current directory contents into the container at /code
|
9 |
COPY ./requirements.txt /code/requirements.txt
|
10 |
|
@@ -25,4 +24,4 @@ WORKDIR $HOME/app
|
|
25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
28 |
-
CMD ["uvicorn", "
|
|
|
1 |
# Use the official Python 3.9 image
|
2 |
+
FROM python:3.9
|
3 |
|
4 |
# Set the working directory to /code
|
5 |
WORKDIR /code
|
6 |
|
|
|
7 |
# Copy the current directory contents into the container at /code
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
|
|
24 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
25 |
COPY --chown=user . $HOME/app
|
26 |
|
27 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|