Fixed model download + add to image
Browse files- .dockerignore +0 -2
- Dockerfile +7 -4
.dockerignore
CHANGED
@@ -3,8 +3,6 @@ build/
|
|
3 |
dist/
|
4 |
livermask.egg-info/
|
5 |
*.DS_Store
|
6 |
-
*.h5
|
7 |
-
*.npz
|
8 |
*.nii
|
9 |
*__pycache__/
|
10 |
.idea/
|
|
|
3 |
dist/
|
4 |
livermask.egg-info/
|
5 |
*.DS_Store
|
|
|
|
|
6 |
*.nii
|
7 |
*__pycache__/
|
8 |
.idea/
|
Dockerfile
CHANGED
@@ -22,10 +22,6 @@ WORKDIR /code
|
|
22 |
RUN apt-get update -y
|
23 |
RUN apt install git --fix-missing -y
|
24 |
|
25 |
-
# Download pretrained parenchyma model
|
26 |
-
RUN wget "https://github.com/andreped/livermask/releases/download/trained-models-v1/model.h5"
|
27 |
-
COPY ./model.h5 /code/model.h5
|
28 |
-
|
29 |
# install dependencies
|
30 |
COPY ./demo/requirements.txt /code/demo/requirements.txt
|
31 |
RUN python3.7 -m pip install --no-cache-dir --upgrade -r /code/demo/requirements.txt
|
@@ -33,6 +29,13 @@ RUN python3.7 -m pip install --no-cache-dir --upgrade -r /code/demo/requirements
|
|
33 |
# resolve issue with tf==2.4 and gradio dependency collision issue
|
34 |
RUN python3.7 -m pip install --force-reinstall typing_extensions==4.0.0
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
# Set up a new user named "user" with user ID 1000
|
37 |
RUN useradd -m -u 1000 user
|
38 |
|
|
|
22 |
RUN apt-get update -y
|
23 |
RUN apt install git --fix-missing -y
|
24 |
|
|
|
|
|
|
|
|
|
25 |
# install dependencies
|
26 |
COPY ./demo/requirements.txt /code/demo/requirements.txt
|
27 |
RUN python3.7 -m pip install --no-cache-dir --upgrade -r /code/demo/requirements.txt
|
|
|
29 |
# resolve issue with tf==2.4 and gradio dependency collision issue
|
30 |
RUN python3.7 -m pip install --force-reinstall typing_extensions==4.0.0
|
31 |
|
32 |
+
# Install wget
|
33 |
+
RUN apt install wget -y
|
34 |
+
|
35 |
+
# Download pretrained parenchyma model
|
36 |
+
RUN wget "https://github.com/andreped/livermask/releases/download/trained-models-v1/model.h5"
|
37 |
+
#COPY --chown=user ./model.h5 /code/model.h5
|
38 |
+
|
39 |
# Set up a new user named "user" with user ID 1000
|
40 |
RUN useradd -m -u 1000 user
|
41 |
|