Spaces:
Running
Running
Create Dockers
Browse files
Dockers
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
+
|
| 3 |
+
# Set the working directory in the container
|
| 4 |
+
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
COPY . /app
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
+
|
| 11 |
+
# Expose the port Flask will run on
|
| 12 |
+
EXPOSE 7860
|
| 13 |
+
|
| 14 |
+
# Run app.py when the container launches
|
| 15 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|