File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
FROM debian:10
2
2
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/*
5
17
6
18
# https://wiki.debian.org/Locale#Manually
7
- RUN apt-get install -y locales
8
- RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen
9
- RUN locale-gen
19
+ RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen \
20
+ && locale-gen
10
21
ENV LANG=en_US.UTF-8
11
22
12
23
RUN chsh -s /bin/bash
13
24
ENV SHELL=/bin/bash
14
25
15
- RUN apt-get install -y dumb-init sudo
16
- RUN apt-get install -y man procps vim nano htop ssh git
17
-
18
26
RUN adduser --gecos '' --disabled-password coder && \
19
27
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
20
28
@@ -24,8 +32,6 @@ RUN curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.4/fixuid-0.
24
32
mkdir -p /etc/fixuid && \
25
33
printf "user: coder\n group: coder\n " > /etc/fixuid/config.yml
26
34
27
- RUN rm -rf /var/lib/apt/lists/*
28
-
29
35
COPY release/code-server*.tar.gz /tmp/
30
36
RUN cd /tmp && tar -xzf code-server*.tar.gz && rm code-server*.tar.gz && \
31
37
mv code-server* /usr/local/lib/code-server && \
You can’t perform that action at this time.
0 commit comments