Update Dockerfile
Browse files- Dockerfile +21 -19
Dockerfile
CHANGED
@@ -1,20 +1,22 @@
|
|
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 . .
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
RUN
|
19 |
-
|
|
|
|
|
20 |
CMD ["./start.sh"]
|
|
|
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 |
CMD ["./start.sh"]
|