Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt /app/
|
| 6 |
+
RUN pip3 install -r requirements.txt
|
| 7 |
+
RUN chmod 777 /app
|
| 8 |
+
COPY . /app
|
| 9 |
+
|
| 10 |
+
# RUN ["python3" ,"-m" ,"nltk.downloader" ,"all" ,"-d", "/nltk_data"]
|
| 11 |
+
|
| 12 |
+
# CMD ["flask" , "run" , "--host=0.0.0.0", "--port=7860" ]
|
| 13 |
+
# CMD ["/bin/sh","/usr/bin/python3" ,"-m" ,"http.server" ,"-b", "0.0.0.0" ,"7860","&","/usr/bin/python3", "main.py" ,">>", "log.txt"]
|
| 14 |
+
# & python3 -m http.server -b 0.0.0.0 7860
|
| 15 |
+
CMD ["python3", "main.py" ]
|