File tree 1 file changed +7
-18
lines changed
1 file changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -24,25 +24,14 @@ ENV LANG=en_US.UTF-8 \
24
24
25
25
COPY --from=0 /src/packages/server/cli-linux-x64 /usr/local/bin/code-server
26
26
RUN apt-get update && apt-get install -y \
27
- sudo \
28
- openssl \
29
- locales \
30
- net-tools;
31
-
32
- RUN adduser --disabled-password --ingroup sudo --gecos '' coder && \
33
- echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
34
- echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
35
- chmod 0440 /etc/sudoers.d/user;
36
-
27
+ openssl \
28
+ net-tools \
29
+ git \
30
+ locales \
31
+ dumb-init
37
32
RUN locale-gen en_US.UTF-8
38
33
# We unfortunately cannot use update-locale because docker will not use the env variables
39
34
# configured in /etc/default/locale so we need to set it manually.
40
35
ENV LANG=en_US.UTF-8
41
- ENV LC_ALL=en_US.UTF-8
42
-
43
- USER coder
44
-
45
- WORKDIR /home/coder
46
-
47
- EXPOSE 8443
48
- ENTRYPOINT ["code-server" ]
36
+ ENV LC_ALL=en_US.UTF-8
37
+ ENTRYPOINT ["/usr/bin/dumb-init" , "code-server" ]
You can’t perform that action at this time.
0 commit comments