Skip to content

Dockerfile for latest VSCode & code-server version #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions GitWorkflow/vscode-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y \
vim \
curl \
wget \
python3.6 \
&& rm -rf /var/lib/apt/lists/*

RUN locale-gen en_US.UTF-8
Expand All @@ -17,23 +18,18 @@ RUN locale-gen en_US.UTF-8
ENV LC_ALL=en_US.UTF-8 \
SHELL=/bin/bash

RUN wget https://github.com/cdr/code-server/releases/download/2.1698/code-server2.1698-vsc1.41.1-linux-x86_64.tar.gz
#COPY code-server2.1698-vsc1.41.1-linux-x86_64.tar.gz /code-server2.1698-vsc1.41.1-linux-x86_64.tar.gz
RUN tar xvfz /code-server2.1698-vsc1.41.1-linux-x86_64.tar.gz
# install the latest version
RUN curl -fsSL https://code-server.dev/install.sh | sh

RUN groupadd -g 999 coder && \
useradd -r -u 999 -g coder coder && \
mkdir /home/coder && \
chown coder:coder /home/coder

USER 999:999

WORKDIR /home/coder

EXPOSE 3000

ENV HOME /home/coder
ENV GIT_DISCOVERY_ACROSS_FILESYSTEM 1

ENTRYPOINT ["dumb-init", "--"]
CMD ["bash", "-c", "exec /code-server2.1698-vsc1.41.1-linux-x86_64/code-server --port 3000 --auth none /vhome"]
CMD ["bash", "-c", "exec code-server --host 0.0.0.0 --port 3000 --auth none /vhome"]