Dockerfile python:3.8-slim update
Browse files- Dockerfile +8 -14
Dockerfile
CHANGED
@@ -1,22 +1,16 @@
|
|
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 |
-
# creates virtual ubuntu in docker image
|
5 |
-
FROM ubuntu:22.04
|
6 |
|
7 |
# set language, format and stuff
|
8 |
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
|
9 |
|
10 |
-
|
11 |
-
|
12 |
RUN apt-get update -y
|
13 |
-
RUN apt-get
|
14 |
-
RUN apt install
|
15 |
-
RUN
|
16 |
-
RUN apt update
|
17 |
-
RUN apt install python3.7 -y
|
18 |
-
RUN apt install python3.7-distutils -y
|
19 |
-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
|
20 |
|
21 |
# installing other libraries
|
22 |
RUN apt-get install python3-pip -y && \
|
@@ -28,12 +22,11 @@ RUN apt-get install libblas-dev -y && apt-get install liblapack-dev -y
|
|
28 |
RUN apt-get install gfortran -y
|
29 |
RUN apt-get install libpng-dev -y
|
30 |
RUN apt-get install python3-dev -y
|
31 |
-
# RUN apt-get -y install cmake curl
|
32 |
|
33 |
WORKDIR /code
|
34 |
|
35 |
# install dependencies
|
36 |
-
COPY
|
37 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
38 |
|
39 |
# resolve issue with tf==2.4 and gradio dependency collision issue
|
@@ -70,6 +63,7 @@ RUN wget "https://github.com/raidionics/Raidionics-models/releases/download/1.2.
|
|
70 |
unzip "Raidionics-MRI_GBM-ONNX-v12.zip" && mv MRI_GBM/ resources/models/MRI_GBM/
|
71 |
RUN wget "https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_Brain-ONNX-v12.zip" && \
|
72 |
unzip "Raidionics-MRI_Brain-ONNX-v12.zip" && mv MRI_Brain/ resources/models/MRI_Brain/
|
|
|
73 |
RUN rm -r *.zip
|
74 |
|
75 |
# Download test sample
|
|
|
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 |
+
FROM python:3.8-slim
|
|
|
|
|
4 |
|
5 |
# set language, format and stuff
|
6 |
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
|
7 |
|
8 |
+
WORKDIR /code
|
9 |
+
|
10 |
RUN apt-get update -y
|
11 |
+
#RUN apt-get install -y python3 python3-pip
|
12 |
+
RUN apt install git --fix-missing -y
|
13 |
+
RUN apt install wget -y
|
|
|
|
|
|
|
|
|
14 |
|
15 |
# installing other libraries
|
16 |
RUN apt-get install python3-pip -y && \
|
|
|
22 |
RUN apt-get install gfortran -y
|
23 |
RUN apt-get install libpng-dev -y
|
24 |
RUN apt-get install python3-dev -y
|
|
|
25 |
|
26 |
WORKDIR /code
|
27 |
|
28 |
# install dependencies
|
29 |
+
COPY .requirements.txt /code/requirements.txt
|
30 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
31 |
|
32 |
# resolve issue with tf==2.4 and gradio dependency collision issue
|
|
|
63 |
unzip "Raidionics-MRI_GBM-ONNX-v12.zip" && mv MRI_GBM/ resources/models/MRI_GBM/
|
64 |
RUN wget "https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_Brain-ONNX-v12.zip" && \
|
65 |
unzip "Raidionics-MRI_Brain-ONNX-v12.zip" && mv MRI_Brain/ resources/models/MRI_Brain/
|
66 |
+
|
67 |
RUN rm -r *.zip
|
68 |
|
69 |
# Download test sample
|