-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (27 loc) · 895 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:jammy
RUN apt-get update \
&& apt-get install -y \
curl \
git \
nano \
procps \
python3-pip \
sudo \
vim \
wget \
&& rm -rf /var/lib/apt/lists/*
ARG USER=ubuntu
ENV HOME="/home/${USER}"
ENV PATH="${PATH}:${HOME}/.local/bin"
ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR ${HOME}
RUN curl -fsSL https://code-server.dev/install.sh | sh
RUN code-server --install-extension ms-python.python && \
code-server --install-extension eamodio.gitlens && \
code-server --install-extension qwtel.sqlite-viewer
VOLUME ${HOME}
CMD [ "code-server", "--bind-addr", "0.0.0.0:3000", "--auth", "none", "${HOME}"]