File tree 2 files changed +18
-11
lines changed
2 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 1
- * @ coderasher @ kylecarbs
1
+ * @ coderasher @ kylecarbs
2
+ Dockerfile @ nhooyr
Original file line number Diff line number Diff line change 1
1
FROM node:8.15.0
2
2
3
3
# Install VS Code's deps. These are the only two it seems we need.
4
- RUN apt-get update
5
- RUN apt-get install -y libxkbfile-dev libsecret-1-dev
4
+ RUN apt-get update && apt-get install -y \
5
+ libxkbfile-dev \
6
+ libsecret-1-dev
6
7
7
8
# Ensure latest yarn.
8
- RUN npm install -g yarn
9
+ RUN npm install -g yarn@1.13
9
10
10
- # In the future, we can use https://github.com/yarnpkg/rfcs/pull/53 to make it use the node_modules
11
- # directly which should be faster.
12
11
WORKDIR /src
13
12
COPY . .
14
- RUN yarn
15
- RUN yarn task build:server:binary
13
+
14
+ # In the future, we can use https://github.com/yarnpkg/rfcs/pull/53 to make yarn use the node_modules
15
+ # directly which should be fast as it is slow because it populates its own cache every time.
16
+ RUN yarn && yarn task build:server:binary
16
17
17
18
# We deploy with ubuntu so that devs have a familiar environemnt.
18
19
FROM ubuntu:18.10
19
- RUN apt-get update
20
- RUN apt-get install -y openssl
21
- RUN apt-get install -y net-tools
22
20
WORKDIR /root/project
23
21
COPY --from=0 /src/packages/server/cli-linux /usr/local/bin/code-server
24
22
EXPOSE 8443
23
+ RUN apt-get update && apt-get install -y \
24
+ openssl \
25
+ net-tools
26
+ RUN apt-get install -y locales && \
27
+ locale-gen en_US.UTF-8
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
25
31
# Unfortunately `.` does not work with code-server.
26
32
CMD code-server $PWD
You can’t perform that action at this time.
0 commit comments