-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add devcontainer configuration and Dockerfile * update
- Loading branch information
1 parent
22037c7
commit 52fcafe
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM mcr.microsoft.com/devcontainers/javascript-node:0-20 | ||
|
||
# We uninstall pnpm here, since we enable the corepack version in the postCreateCommand | ||
# This ensures we respect the "packageManager" version in package.json | ||
RUN npm uninstall -g pnpm | ||
|
||
COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "StudioCMS Workspace", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"postCreateCommand": "sudo corepack enable pnpm && pnpm config set store-dir /home/node/.pnpm-store && PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 pnpm install", | ||
|
||
"waitFor": "postCreateCommand", | ||
|
||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["README.md"] | ||
}, | ||
"vscode": { | ||
"extensions": [ | ||
"astro-build.astro-vscode", | ||
"astro-build.houston", | ||
"biomejs.biome", | ||
"eamodio.gitlens", | ||
"redhat.vscode-yaml", | ||
"ZainChen.json" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
👋 Welcome to StudioCMS! | ||
|
||
🛠️ Your environment is fully setup with all required software installed. |