@@ -6,7 +6,7 @@ COPY release-packages/code-server*.deb /tmp/
66FROM debian:11
77
88RUN apt-get update \
9- && apt-get install -y \
9+ && apt-get install -y \
1010 curl \
1111 dumb-init \
1212 zsh \
@@ -29,15 +29,15 @@ RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen \
2929 && locale-gen
3030ENV LANG=en_US.UTF-8
3131
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
3434
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
4141
4242COPY ci/release-image/entrypoint.sh /usr/bin/entrypoint.sh
4343RUN --mount=from=packages,src=/tmp,dst=/tmp/packages dpkg -i /tmp/packages/code-server*$(dpkg --print-architecture).deb
0 commit comments