Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
FROM python:3.8-slim
|
| 2 |
|
| 3 |
# Set the working directory to /create_ai_ad
|
| 4 |
-
WORKDIR /
|
| 5 |
|
| 6 |
# Copy the current directory contents into the container at /create_ai_ad
|
| 7 |
-
COPY . /
|
| 8 |
|
| 9 |
# Install any needed packages specified in requirements.txt
|
| 10 |
RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
|
@@ -22,4 +22,4 @@ EXPOSE 80
|
|
| 22 |
ENV NAME StableAd
|
| 23 |
|
| 24 |
# Run app.py when the container launches
|
| 25 |
-
CMD ["uvicorn", "app
|
|
|
|
| 1 |
FROM python:3.8-slim
|
| 2 |
|
| 3 |
# Set the working directory to /create_ai_ad
|
| 4 |
+
WORKDIR /create_ai_ad
|
| 5 |
|
| 6 |
# Copy the current directory contents into the container at /create_ai_ad
|
| 7 |
+
COPY . /create_ai_ad
|
| 8 |
|
| 9 |
# Install any needed packages specified in requirements.txt
|
| 10 |
RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
|
|
|
| 22 |
ENV NAME StableAd
|
| 23 |
|
| 24 |
# Run app.py when the container launches
|
| 25 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|