Skip to content

Commit

Permalink
Use lock file for installation of code-server
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Banks committed Mar 16, 2022
1 parent 4d10ef5 commit 6c2016a
Show file tree
Hide file tree
Showing 3 changed files with 2,155 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ RUN --mount=type=cache,id=code-server-apk,sharing=locked,from=cache,target=/var/
sudo \
yarn

COPY rootfs/usr/local/share/.config/yarn/global /usr/local/share/.config/yarn/global

RUN --mount=type=cache,id=code-server-yarn,sharing=locked,from=cache,target=/usr/local/share/.cache/yarn \
yarn global add node-gyp bower grunt-cli && \
JOBS=max yarn global add code-server spdlog
cd /usr/local/share/.config/yarn/global && \
JOBS=max yarn install

SHELL ["/bin/bash", "-c"]

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"dependencies": {
"bower": "^1.8.14",
"code-server": "^4.1.0",
"grunt-cli": "^1.4.3",
"node-gyp": "^9.0.0",
"spdlog": "^0.13.6"
}
}
Loading

0 comments on commit 6c2016a

Please sign in to comment.