Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -7
Dockerfile
CHANGED
@@ -1,15 +1,17 @@
|
|
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 |
FROM python:latest
|
7 |
|
8 |
RUN apt-get update \
|
9 |
&& apt-get install unzip \
|
10 |
&& apt install pv
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# Set up a new user named "user" with user ID 1000
|
15 |
RUN useradd -m -u 1000 user
|
@@ -35,7 +37,4 @@ COPY --chown=user . $HOME/app
|
|
35 |
# RUN unzip -oq img_align_celeba.zip | tqdm --desc extracted --unit files --unit_scale --total $n_files > /dev/null
|
36 |
RUN unzip -q img_align_celeba.zip
|
37 |
|
38 |
-
|
39 |
-
RUN python cbir_system.py
|
40 |
-
|
41 |
-
CMD ["python"]
|
|
|
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:latest
|
5 |
|
6 |
RUN apt-get update \
|
7 |
&& apt-get install unzip \
|
8 |
&& apt install pv
|
9 |
|
10 |
+
WORKDIR /code
|
11 |
+
|
12 |
+
COPY ./requirements.txt /code/requirements.txt
|
13 |
+
|
14 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
15 |
|
16 |
# Set up a new user named "user" with user ID 1000
|
17 |
RUN useradd -m -u 1000 user
|
|
|
37 |
# RUN unzip -oq img_align_celeba.zip | tqdm --desc extracted --unit files --unit_scale --total $n_files > /dev/null
|
38 |
RUN unzip -q img_align_celeba.zip
|
39 |
|
40 |
+
CMD ["python", "main.py"]
|
|
|
|
|
|