Spaces:
Runtime error
Runtime error
Zai
commited on
Commit
·
7d25959
1
Parent(s):
b25d941
test again
Browse files- Dockerfile +23 -10
Dockerfile
CHANGED
|
@@ -1,17 +1,30 @@
|
|
| 1 |
# Use an official Python runtime as a parent image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
FROM python:3.7
|
| 3 |
|
| 4 |
-
|
| 5 |
-
WORKDIR /app
|
| 6 |
|
| 7 |
-
|
| 8 |
-
COPY . /app
|
| 9 |
|
| 10 |
-
|
| 11 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
|
| 14 |
-
EXPOSE 8000
|
| 15 |
|
| 16 |
-
|
| 17 |
-
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
|
|
|
| 1 |
# Use an official Python runtime as a parent image
|
| 2 |
+
# FROM python:3.7
|
| 3 |
+
|
| 4 |
+
# # Set the working directory to /app
|
| 5 |
+
# WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# # Copy the current directory contents into the container at /app
|
| 8 |
+
# COPY . /app
|
| 9 |
+
|
| 10 |
+
# # Install any needed packages specified in requirements.txt
|
| 11 |
+
# RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
+
|
| 13 |
+
# # Expose port 8000 for Hugging Face Inference API
|
| 14 |
+
# EXPOSE 8000
|
| 15 |
+
|
| 16 |
+
# # Run the application when the container launches
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
FROM python:3.7
|
| 21 |
|
| 22 |
+
WORKDIR /code
|
|
|
|
| 23 |
|
| 24 |
+
COPY . /code
|
|
|
|
| 25 |
|
| 26 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
| 27 |
|
| 28 |
+
COPY . .
|
|
|
|
| 29 |
|
| 30 |
+
CMD ["python", "code.manage.py", "runserver", "0.0.0.0:7860"]
|
|
|