Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -13,6 +13,9 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
|
|
| 13 |
git \
|
| 14 |
wget \
|
| 15 |
htop \
|
|
|
|
|
|
|
|
|
|
| 16 |
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
#RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
|
@@ -73,8 +76,9 @@ USER root
|
|
| 73 |
USER root
|
| 74 |
|
| 75 |
# Python packages
|
|
|
|
| 76 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 77 |
-
pip install --no-cache-dir --upgrade -r requirements.txt
|
| 78 |
|
| 79 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 80 |
COPY --chown=user . $HOME/app
|
|
|
|
| 13 |
git \
|
| 14 |
wget \
|
| 15 |
htop \
|
| 16 |
+
python3 \
|
| 17 |
+
python3-pip \
|
| 18 |
+
python3-venv \
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
#RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
|
|
|
| 76 |
USER root
|
| 77 |
|
| 78 |
# Python packages
|
| 79 |
+
RUN python3 -m venv test
|
| 80 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 81 |
+
$(pwd)/test/bin/pip install --no-cache-dir --upgrade -r requirements.txt
|
| 82 |
|
| 83 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 84 |
COPY --chown=user . $HOME/app
|