File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,6 @@ FROM debian:10
33RUN apt-get update
44RUN apt-get install -y curl
55
6- COPY release/code-server*.tar.gz /tmp
7- RUN cd /tmp && tar -xzf code-server*.tar.gz && \
8- cp code-server*/code-server /usr/local/bin/code-server
9- RUN rm -rf /tmp/*
10-
116# https://wiki.debian.org/Locale#Manually
127RUN apt-get install -y locales
138RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen
@@ -30,6 +25,12 @@ RUN curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.4/fixuid-0.
3025 printf "user: coder\n group: coder\n " > /etc/fixuid/config.yml
3126
3227RUN rm -rf /var/lib/apt/lists/*
28+
29+ COPY release/code-server*.tar.gz /tmp
30+ RUN cd /tmp && tar -xzf code-server*.tar.gz && \
31+ cp code-server*/code-server /usr/local/bin/code-server
32+ RUN rm -rf /tmp/*
33+
3334EXPOSE 8080
3435USER coder
3536WORKDIR /home/coder
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ main() {
1212 # If the patch fails to apply, then it's likely already applied
1313 yarn vscode:patch & > /dev/null || true
1414
15- # Install VS Code dependencies.
16- # The second yarn is required as for whatever reason, we get
17- # NODE_MODULE_VERSION mismatch errors without it.
1815 (
1916 cd lib/vscode
17+ # Install VS Code dependencies.
2018 yarn
21- yarn --ignore-scripts
19+
20+ # NODE_MODULE_VERSION mismatch errors without this.
21+ npm rebuild
2222 )
2323}
2424
You can’t perform that action at this time.
0 commit comments