vscode/.devcontainer/Dockerfile
mxwj 018ff30de3
Some checks failed
Monaco Editor checks / Monaco Editor checks (push) Has been cancelled
Initial commit
2024-11-15 14:29:18 +08:00

15 lines
502 B
Docker

FROM mcr.microsoft.com/devcontainers/typescript-node:20-bookworm
ADD install-vscode.sh /root/
RUN /root/install-vscode.sh
RUN git config --system codespaces-theme.hide-status 1
USER node
RUN npm install -g node-gyp
RUN NPM_CACHE="$(npm config get cache)" && rm -rf "$NPM_CACHE" && ln -s /vscode-dev/npm-cache "$NPM_CACHE"
RUN echo 'export DISPLAY="${DISPLAY:-:1}"' | tee -a ~/.bashrc >> ~/.zshrc
USER root
CMD chown node:node /vscode-dev && sudo -u node mkdir -p /vscode-dev/npm-cache && sleep inf