1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-26 12:15:26 +00:00

Combine apt-get in final docker image and remove cache

This commit is contained in:
Sandro Jäckel 2019-03-13 11:01:51 +01:00 committed by Anmol Sethi
parent ec2d01ab40
commit 3a6e27bc87
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB

View File

@ -23,9 +23,10 @@ COPY --from=0 /src/packages/server/cli-linux-x64 /usr/local/bin/code-server
EXPOSE 8443
RUN apt-get update && apt-get install -y \
openssl \
net-tools
RUN apt-get install -y locales && \
locale-gen en_US.UTF-8
net-tools \
locales && \
locale-gen en_US.UTF-8 && \
rm -rf /var/lib/apt/lists/*
# We unfortunately cannot use update-locale because docker will not use the env variables
# configured in /etc/default/locale so we need to set it manually.
ENV LANG=en_US.UTF-8