Spaces:
Runtime error
Runtime error
xyplon
commited on
Commit
•
9864782
1
Parent(s):
2e6bfbc
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
COPY . /app
|
6 |
+
|
7 |
+
COPY requirements.txt ./
|
8 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
9 |
+
|
10 |
+
EXPOSE 7860
|
11 |
+
|
12 |
+
ENV FLASK_APP=app.py
|
13 |
+
ENV FLASK_RUN_HOST=0.0.0.0
|
14 |
+
ENV FLASK_RUN_PORT=7860
|
15 |
+
|
16 |
+
CMD ["flask", "run"]
|