Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +8 -15
Dockerfile
CHANGED
|
@@ -13,13 +13,6 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
|
|
| 13 |
git \
|
| 14 |
wget \
|
| 15 |
htop \
|
| 16 |
-
python3 \
|
| 17 |
-
python3-pip \
|
| 18 |
-
python3-venv \
|
| 19 |
-
libx11-6 \
|
| 20 |
-
build-essential \
|
| 21 |
-
libsndfile-dev \
|
| 22 |
-
software-properties-common \
|
| 23 |
&& rm -rf /var/lib/apt/lists/*
|
| 24 |
|
| 25 |
#RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
|
@@ -45,13 +38,13 @@ RUN mkdir $HOME/.cache $HOME/.config \
|
|
| 45 |
&& chmod -R 777 $HOME
|
| 46 |
|
| 47 |
# Set up the Conda environment
|
| 48 |
-
|
| 49 |
# PATH=$HOME/miniconda/bin:$PATH
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
|
| 56 |
WORKDIR $HOME/app
|
| 57 |
|
|
@@ -80,9 +73,9 @@ USER root
|
|
| 80 |
|
| 81 |
|
| 82 |
# Python packages
|
| 83 |
-
RUN python3 -m venv test
|
| 84 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 85 |
-
|
| 86 |
|
| 87 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 88 |
COPY --chown=user . $HOME/app
|
|
|
|
| 13 |
git \
|
| 14 |
wget \
|
| 15 |
htop \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
#RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
|
|
|
| 38 |
&& chmod -R 777 $HOME
|
| 39 |
|
| 40 |
# Set up the Conda environment
|
| 41 |
+
ENV CONDA_AUTO_UPDATE_CONDA=false \
|
| 42 |
# PATH=$HOME/miniconda/bin:$PATH
|
| 43 |
+
RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
|
| 44 |
+
&& chmod +x ~/miniconda.sh \
|
| 45 |
+
&& ~/miniconda.sh -b -p ~/miniconda \
|
| 46 |
+
&& rm ~/miniconda.sh \
|
| 47 |
+
&& conda clean -ya
|
| 48 |
|
| 49 |
WORKDIR $HOME/app
|
| 50 |
|
|
|
|
| 73 |
|
| 74 |
|
| 75 |
# Python packages
|
| 76 |
+
#RUN python3 -m venv test
|
| 77 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 78 |
+
pip install --no-cache-dir --upgrade -r requirements.txt
|
| 79 |
|
| 80 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 81 |
COPY --chown=user . $HOME/app
|