tastypear commited on
Commit
f28dc48
·
verified ·
1 Parent(s): b9b4a55

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.9
5
+
6
+ WORKDIR /code
7
+
8
+ COPY ./main.py /code/main.py
9
+
10
+ COPY ./space_checker.py /code/space_checker.py
11
+
12
+ COPY ./requirements.txt /code/requirements.txt
13
+
14
+ COPY ./start.sh /code/start.sh
15
+
16
+ COPY . .
17
+
18
+ RUN pip install -r /code/requirements.txt
19
+
20
+ RUN chmod +x start.sh
21
+
22
+ RUN sed -i 's/\r$//' start.sh
23
+
24
+ CMD ["bash","start.sh"]