Skip to content

Commit 3c36d90

Browse files
authored
add bundler and bundle install to enable docs build in codespaces
1 parent b810383 commit 3c36d90

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
ARG VARIANT="16"
55
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
66

7-
# [Optional] Uncomment this section to install additional OS packages.
8-
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9-
# && apt-get -y install --no-install-recommends <your-package-list-here>
7+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
8+
&& apt-get -y install --no-install-recommends bundler
109

1110
# [Optional] Uncomment if you want to install an additional version of node using nvm
1211
# ARG EXTRA_NODE_VERSION=10

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// "forwardPorts": [],
2323

2424
// Use 'postCreateCommand' to run commands after the container is created.
25-
// "postCreateCommand": "yarn install",
25+
"postCreateCommand": "npm i && cd docs && sudo bundle install",
2626

2727
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
2828
"remoteUser": "node",

0 commit comments

Comments
 (0)