mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-06 12:04:00 +09:00
## Description Allow development in devcontainers, simplifies initial setup Open project in vscode (and accept open in devcontainer) or in codespaces, wait setup to complete run ``` pnpm dev ``` <img width="436" alt="image" src="https://github.com/webstudio-is/webstudio/assets/5077042/f03fdc99-5c46-4de5-be9c-2bb9420afc99"> ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env.example` and the `builder/env-check.js` if mandatory
18 lines
705 B
Docker
18 lines
705 B
Docker
FROM mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm
|
|
|
|
ENV PATH=/usr/local/bin:${PATH}
|
|
# Install latest pnpm
|
|
# RUN npm install -g pnpm@9.0.2
|
|
|
|
# [Optional] Uncomment this section to install additional OS packages.
|
|
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
|
|
|
# [Optional] Uncomment if you want to install an additional version of node using nvm
|
|
# ARG EXTRA_NODE_VERSION=10
|
|
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
|
|
|
|
# [Optional] Uncomment if you want to install more global node modules
|
|
# RUN su node -c "npm install -g <your-package-list-here>"
|
|
|