File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM debian:10
22
3- RUN apt-get update
4- RUN apt-get install -y curl
3+ RUN apt-get update \
4+ && apt-get install -y \
5+ curl \
6+ dumb-init \
7+ htop \
8+ locales \
9+ man \
10+ nano \
11+ git \
12+ procps \
13+ ssh \
14+ sudo \
15+ vim \
16+ && rm -rf /var/lib/apt/lists/*
517
618# https://wiki.debian.org/Locale#Manually
7- RUN apt-get install -y locales
819RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen
920RUN locale-gen
1021ENV LANG=en_US.UTF-8
1122
1223RUN chsh -s /bin/bash
1324ENV SHELL=/bin/bash
1425
15- RUN apt-get install -y dumb-init sudo
16- RUN apt-get install -y man procps vim nano htop ssh git
17-
1826RUN adduser --gecos '' --disabled-password coder && \
1927 echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
2028
@@ -24,8 +32,6 @@ RUN curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.4/fixuid-0.
2432 mkdir -p /etc/fixuid && \
2533 printf "user: coder\n group: coder\n " > /etc/fixuid/config.yml
2634
27- RUN rm -rf /var/lib/apt/lists/*
28-
2935COPY release/code-server*.tar.gz /tmp/
3036RUN cd /tmp && tar -xzf code-server*.tar.gz && rm code-server*.tar.gz && \
3137 mv code-server* /usr/local/lib/code-server && \
You can’t perform that action at this time.
0 commit comments