anon5 commited on
Commit
65ac845
·
verified ·
1 Parent(s): d1d2039

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /app
4
+
5
+ RUN mkdir /app/.cache
6
+ RUN chmod -R 777 /app/.cache
7
+ ENV HF_HOME=/app/.cache
8
+
9
+ COPY ./requirements.txt /app
10
+ RUN pip install -r requirements.txt
11
+
12
+ COPY ./app.py /app
13
+
14
+ EXPOSE 7860
15
+ CMD ["flask", "run" ,"--host", "0.0.0.0", "--port", "7860"]