pg-13 commited on
Commit
59150a4
1 Parent(s): aec8747

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -1,12 +1,14 @@
1
  FROM python:3.8
2
 
3
 
4
- COPY . /app
5
- WORKDIR /app
6
 
7
 
8
  RUN pip install -r requirements.txt
9
- EXPOSE 7860
10
 
11
- CMD ["python3", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
12
 
 
1
  FROM python:3.8
2
 
3
 
4
+ WORKDIR /workspace
5
+ ADD . /workspace
6
 
7
 
8
  RUN pip install -r requirements.txt
 
9
 
10
+ CMD [ "python" , "/workspace/app.py" ]
11
+
12
+ RUN python app.py -R 7860:7860 /workspace
13
+ ENV HOME=/workspace
14