File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -18,27 +18,15 @@ RUN yarn && NODE_ENV=production yarn task build:server:binary
1818# We deploy with ubuntu so that devs have a familiar environment.
1919FROM ubuntu:18.10
2020
21- # We unfortunately cannot use update-locale because docker will not use the env variables
22- # configured in /etc/default/locale so we need to set it manually.
23- ENV LANG=en_US.UTF-8
24-
25- COPY --from=0 /src/packages/server/cli-linux-x64 /usr/local/bin/code-server
2621RUN apt-get update && apt-get install -y \
27- sudo \
2822 openssl \
23+ net-tools \
24+ git \
2925 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-
26+ dumb-init
3727RUN locale-gen en_US.UTF-8
38-
39- USER coder
40-
41- WORKDIR /home/coder
42-
43- EXPOSE 8443
44- ENTRYPOINT ["code-server" ]
28+ # We unfortunately cannot use update-locale because docker will not use the env variables
29+ # configured in /etc/default/locale so we need to set it manually.
30+ ENV LANG=en_US.UTF-8
31+ ENV LC_ALL=en_US.UTF-8
32+ ENTRYPOINT ["/usr/bin/dumb-init" , "code-server" ]
You can’t perform that action at this time.
0 commit comments