@@ -6,7 +6,7 @@ COPY release-packages/code-server*.deb /tmp/
6
6
FROM debian:11
7
7
8
8
RUN apt-get update \
9
- && apt-get install -y \
9
+ && apt-get install -y \
10
10
curl \
11
11
dumb-init \
12
12
zsh \
@@ -29,15 +29,15 @@ RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen \
29
29
&& locale-gen
30
30
ENV LANG=en_US.UTF-8
31
31
32
- RUN adduser --gecos '' --disabled-password coder && \
33
- echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
32
+ RUN adduser --gecos '' --disabled-password coder \
33
+ && echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
34
34
35
- RUN ARCH="$(dpkg --print-architecture)" && \
36
- curl -fsSL "https://github.com/boxboat/fixuid/releases/download/v0.5/fixuid-0.5-linux-$ARCH.tar.gz" | tar -C /usr/local/bin -xzf - && \
37
- chown root:root /usr/local/bin/fixuid && \
38
- chmod 4755 /usr/local/bin/fixuid && \
39
- mkdir -p /etc/fixuid && \
40
- printf "user: coder\n group: coder\n " > /etc/fixuid/config.yml
35
+ RUN ARCH="$(dpkg --print-architecture)" \
36
+ && curl -fsSL "https://github.com/boxboat/fixuid/releases/download/v0.5/fixuid-0.5-linux-$ARCH.tar.gz" | tar -C /usr/local/bin -xzf - \
37
+ && chown root:root /usr/local/bin/fixuid \
38
+ && chmod 4755 /usr/local/bin/fixuid \
39
+ && mkdir -p /etc/fixuid \
40
+ && printf "user: coder\n group: coder\n " > /etc/fixuid/config.yml
41
41
42
42
COPY ci/release-image/entrypoint.sh /usr/bin/entrypoint.sh
43
43
RUN --mount=from=packages,src=/tmp,dst=/tmp/packages dpkg -i /tmp/packages/code-server*$(dpkg --print-architecture).deb
0 commit comments