Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yufree authored Aug 29, 2024
1 parent 571ba1f commit 1a8a1a3
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions deepspace/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
ARG CUDA_VERSION=12.6.0

FROM nvidia/cuda:${CUDA_VERSION}-base-ubuntu24.04

ENV DEBIAN_FRONTEND noninteractive

# Install necessary packages
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
curl \
software-properties-common \
python3 \
python3-pip \
nodejs \
npm \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /workspace

RUN wget https://github.com/cdr/code-server/releases/download/v4.92.2/code-server_4.92.2_amd64.deb \
&& dpkg -i code-server_4.92.2_amd64.deb \
&& rm code-server_4.92.2_amd64.deb
# Install code-server
RUN curl -fsSL https://code-server.dev/install.sh | sh

# Install some common VS Code extensions
RUN code-server --install-extension ms-python.python \
&& code-server --install-extension ms-toolsai.jupyter

# Install Jupyter
RUN pip3 install jupyter

# Expose port for code-server
EXPOSE 8080
CMD ["code-server", "--bind-addr", "0.0.0.0:8080"]

# Start code-server
CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "none"]

0 comments on commit 1a8a1a3

Please sign in to comment.