Fix attempt at model download into container
Browse files- .dockerignore +2 -0
- Dockerfile +4 -3
.dockerignore
CHANGED
|
@@ -3,6 +3,8 @@ build/
|
|
| 3 |
dist/
|
| 4 |
livermask.egg-info/
|
| 5 |
*.DS_Store
|
|
|
|
|
|
|
| 6 |
*.nii
|
| 7 |
*__pycache__/
|
| 8 |
.idea/
|
|
|
|
| 3 |
dist/
|
| 4 |
livermask.egg-info/
|
| 5 |
*.DS_Store
|
| 6 |
+
*.h5
|
| 7 |
+
*.npz
|
| 8 |
*.nii
|
| 9 |
*__pycache__/
|
| 10 |
.idea/
|
Dockerfile
CHANGED
|
@@ -32,9 +32,7 @@ RUN python3.7 -m pip install --force-reinstall typing_extensions==4.0.0
|
|
| 32 |
# Install wget
|
| 33 |
RUN apt install wget -y
|
| 34 |
|
| 35 |
-
|
| 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
|
|
@@ -52,4 +50,7 @@ WORKDIR $HOME/app
|
|
| 52 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 53 |
COPY --chown=user . $HOME/app
|
| 54 |
|
|
|
|
|
|
|
|
|
|
| 55 |
CMD ["python3.7", "demo/app.py"]
|
|
|
|
| 32 |
# Install wget
|
| 33 |
RUN apt install wget -y
|
| 34 |
|
| 35 |
+
RUN ls -la
|
|
|
|
|
|
|
| 36 |
|
| 37 |
# Set up a new user named "user" with user ID 1000
|
| 38 |
RUN useradd -m -u 1000 user
|
|
|
|
| 50 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 51 |
COPY --chown=user . $HOME/app
|
| 52 |
|
| 53 |
+
# Download pretrained parenchyma model
|
| 54 |
+
RUN wget "https://github.com/andreped/livermask/releases/download/trained-models-v1/model.h5"
|
| 55 |
+
|
| 56 |
CMD ["python3.7", "demo/app.py"]
|