atonyxu
commited on
Commit
·
319dae3
1
Parent(s):
eaa6eb5
code
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
|
@@ -19,6 +19,7 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
|
|
| 19 |
wget \
|
| 20 |
aria2 \
|
| 21 |
axel \
|
|
|
|
| 22 |
procps \
|
| 23 |
git-lfs \
|
| 24 |
zip \
|
|
@@ -33,10 +34,6 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
|
|
| 33 |
software-properties-common \
|
| 34 |
&& rm -rf /var/lib/apt/lists/*
|
| 35 |
|
| 36 |
-
RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
| 37 |
-
apt-get upgrade -y && \
|
| 38 |
-
apt-get install -y --no-install-recommends nvtop
|
| 39 |
-
|
| 40 |
RUN curl -sL https://deb.nodesource.com/setup_21.x | bash - && \
|
| 41 |
apt-get install -y nodejs && \
|
| 42 |
npm install -g configurable-http-proxy
|
|
@@ -87,7 +84,7 @@ USER coder
|
|
| 87 |
# Python packages
|
| 88 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 89 |
pip install --no-cache-dir --upgrade -r requirements.txt && \
|
| 90 |
-
pip install glances modelscope huggingface_hub
|
| 91 |
|
| 92 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 93 |
COPY --chown=coder . $HOME/app
|
|
@@ -108,4 +105,4 @@ ENV PYTHONUNBUFFERED=1 \
|
|
| 108 |
EXPOSE 8080
|
| 109 |
|
| 110 |
# Run code-server
|
| 111 |
-
CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "password"]
|
|
|
|
| 19 |
wget \
|
| 20 |
aria2 \
|
| 21 |
axel \
|
| 22 |
+
python3 \
|
| 23 |
procps \
|
| 24 |
git-lfs \
|
| 25 |
zip \
|
|
|
|
| 34 |
software-properties-common \
|
| 35 |
&& rm -rf /var/lib/apt/lists/*
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
RUN curl -sL https://deb.nodesource.com/setup_21.x | bash - && \
|
| 38 |
apt-get install -y nodejs && \
|
| 39 |
npm install -g configurable-http-proxy
|
|
|
|
| 84 |
# Python packages
|
| 85 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 86 |
pip install --no-cache-dir --upgrade -r requirements.txt && \
|
| 87 |
+
pip install glances modelscope huggingface_hub
|
| 88 |
|
| 89 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 90 |
COPY --chown=coder . $HOME/app
|
|
|
|
| 105 |
EXPOSE 8080
|
| 106 |
|
| 107 |
# Run code-server
|
| 108 |
+
CMD ["code-server /data", "--bind-addr", "0.0.0.0:8080", "--auth", "password"]
|