Skip to content

Commit 7adfed2

Browse files
Chore: add typescript and prettier
1 parent 7d17014 commit 7adfed2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,12 @@ RUN wget https://github.com/dandavison/delta/releases/download/${DELTA_VERSION}/
6969
&& sudo dpkg -i git-delta_${DELTA_VERSION}_arm64.deb \
7070
&& rm git-delta_${DELTA_VERSION}_arm64.deb
7171

72+
LABEL build.step.node=build_nodejs
73+
ARG NODE_VERSION_LTS="lts/*"
74+
ARG NODE_MODULES="typescript prettier"
75+
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION_LTS}" 2>&1
76+
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g ${NODE_MODULES}" 2>&1
77+
78+
LABEL build.step.cleanup=build_cleanup
7279
RUN sudo apt-get autoremove -y && apt-get clean -y \
7380
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)