2023-08-14 07:47:40 +00:00
|
|
|
FROM mcr.microsoft.com/devcontainers/typescript-node:18-bookworm
|
2022-12-09 16:18:11 +00:00
|
|
|
|
|
|
|
ADD install-vscode.sh /root/
|
|
|
|
RUN /root/install-vscode.sh
|
|
|
|
|
|
|
|
RUN git config --system codespaces-theme.hide-status 1
|
|
|
|
|
|
|
|
USER node
|
2023-10-02 14:08:10 +00:00
|
|
|
RUN npm install -g node-gyp
|
2022-12-09 16:18:11 +00:00
|
|
|
RUN YARN_CACHE="$(yarn cache dir)" && rm -rf "$YARN_CACHE" && ln -s /vscode-dev/yarn-cache "$YARN_CACHE"
|
2023-10-04 18:16:36 +00:00
|
|
|
RUN echo 'export DISPLAY="${DISPLAY:-:1}"' | tee -a ~/.bashrc >> ~/.zshrc
|
2022-12-09 16:18:11 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
CMD chown node:node /vscode-dev && sudo -u node mkdir -p /vscode-dev/yarn-cache && sleep inf
|