Created
May 9, 2025 18:58
-
-
Save rlnorthcutt/bdd9c3737409453609ebf66564313821 to your computer and use it in GitHub Desktop.
Smallweb Devcontainer
This file contains hidden or 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
Show hidden characters
// **What is this file?** | |
// This file is for use with the SmallWeb project, which is a lightweight web server | |
// and framework for building web applications. The purpose of this file is to | |
// define the development environment for a SmallWeb dev instance using | |
// Visual Studio Code's Remote - Containers feature. | |
// It specifies the configuration for the development container, including the base image, | |
// features, environment variables, and post-creation commands.Think of it as a recipe for | |
// creating a consistent and isolated development environment. | |
// Plase this file in /.devcontainer/devcontainer.json in your project root to use it. | |
// You will need the Remote - Containers extension for Visual Studio Code installed. | |
// Then you can open the project in a container by clicking on the green button in the bottom. | |
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | |
{ | |
"image": "mcr.microsoft.com/devcontainers/base:jammy", | |
"features": { | |
"ghcr.io/devcontainers-community/features/deno:1": {} | |
}, | |
"remoteEnv": { | |
"SMALLWEB_DIR": "${containerWorkspaceFolder}", | |
"SMALLWEB_DOMAIN": "smallweb.localhost" | |
}, | |
"forwardPorts": [ | |
7777, | |
2222 | |
], | |
"postCreateCommand": "curl -sSfL https://install.smallweb.run | sh" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment