Dockerfile 501 B

123456789101112131415
  1. FROM mcr.microsoft.com/devcontainers/typescript-node:18-bookworm
  2. ADD install-vscode.sh /root/
  3. RUN /root/install-vscode.sh
  4. RUN git config --system codespaces-theme.hide-status 1
  5. USER node
  6. RUN npm install -g node-gyp
  7. RUN YARN_CACHE="$(yarn cache dir)" && rm -rf "$YARN_CACHE" && ln -s /vscode-dev/yarn-cache "$YARN_CACHE"
  8. RUN echo 'export DISPLAY="${DISPLAY:-:1}"' | tee -a ~/.bashrc >> ~/.zshrc
  9. USER root
  10. CMD chown node:node /vscode-dev && sudo -u node mkdir -p /vscode-dev/yarn-cache && sleep inf