Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -21,8 +21,7 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
|
|
21 |
build-essential \
|
22 |
libsndfile-dev \
|
23 |
software-properties-common \
|
24 |
-
openssh-client
|
25 |
-
&& rm -rf /var/lib/apt/lists/*
|
26 |
|
27 |
RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
28 |
apt-get upgrade -y && \
|
@@ -48,7 +47,7 @@ RUN mkdir $HOME/.cache $HOME/.config \
|
|
48 |
# Set up the Conda environment
|
49 |
ENV CONDA_AUTO_UPDATE_CONDA=false \
|
50 |
PATH=$HOME/miniconda/bin:$PATH
|
51 |
-
RUN curl -sLo ~/miniconda.sh https://repo.
|
52 |
&& chmod +x ~/miniconda.sh \
|
53 |
&& ~/miniconda.sh -b -p ~/miniconda \
|
54 |
&& rm ~/miniconda.sh \
|
@@ -66,8 +65,7 @@ USER root
|
|
66 |
## Security warning : Potential user code executed as root (build time)
|
67 |
RUN --mount=target=/root/packages.txt,source=packages.txt \
|
68 |
apt-get update && \
|
69 |
-
xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends
|
70 |
-
&& rm -rf /var/lib/apt/lists/*
|
71 |
|
72 |
RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
|
73 |
bash /root/on_startup.sh
|
|
|
21 |
build-essential \
|
22 |
libsndfile-dev \
|
23 |
software-properties-common \
|
24 |
+
openssh-client
|
|
|
25 |
|
26 |
RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
27 |
apt-get upgrade -y && \
|
|
|
47 |
# Set up the Conda environment
|
48 |
ENV CONDA_AUTO_UPDATE_CONDA=false \
|
49 |
PATH=$HOME/miniconda/bin:$PATH
|
50 |
+
RUN curl -sLo ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-py311_24.3.0-0-Linux-x86_64.sh \
|
51 |
&& chmod +x ~/miniconda.sh \
|
52 |
&& ~/miniconda.sh -b -p ~/miniconda \
|
53 |
&& rm ~/miniconda.sh \
|
|
|
65 |
## Security warning : Potential user code executed as root (build time)
|
66 |
RUN --mount=target=/root/packages.txt,source=packages.txt \
|
67 |
apt-get update && \
|
68 |
+
xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends
|
|
|
69 |
|
70 |
RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
|
71 |
bash /root/on_startup.sh
|