Update devcontainer to include npm and publish port 3000 for working with documentation updates

This commit is contained in:
KemoNine 2020-12-03 11:18:13 -05:00
parent 177b28f01d
commit 059cdc2761
2 changed files with 14 additions and 6 deletions

View file

@ -2,14 +2,22 @@ FROM zmkfirmware/zephyr-west-action-arm
ENV LC_ALL=C
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get install --no-install-recommends -y \
RUN apt-get -y update \
&& apt-get -y upgrade \
&& apt-get install --no-install-recommends -y \
ssh \
nano \
locales \
gpg && \
rm -rf /var/lib/apt/lists/*
ssh \
gpg \
gpg-agent \
curl \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get -y update \
&& apt-get install --no-install-recommends -y nodejs \
&& node --version \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY .bashrc tmp
RUN mv /tmp/.bashrc ~/.bashrc

View file

@ -2,7 +2,7 @@
"name": "ZMK Development",
"dockerFile": "Dockerfile",
"extensions": ["ms-vscode.cpptools"],
"runArgs": ["--security-opt", "label=disable"],
"runArgs": ["--security-opt", "label=disable", "--publish", "3000"],
"containerEnv": {"WORKSPACE_DIR": "${containerWorkspaceFolder}"},
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"