Allows to develop web application with Angular through Visual Studio Code (code-server)
209
Docker image to run Angular development inside a code-server environment, ready to code in the browser.
Start a new container:
docker run -d --name my-angular -p {port}:4200 aurelien0713/angular:{tag}
Access your code-server in the browser at:
http://localhost:{port}
You can configure the container using environment variables and volume mounts.
| Variable | Default | Description |
|---|---|---|
GIT_USER | (empty) | Git username for commits |
GIT_MAIL | (empty) | Email address for Git commits |
CODESRV_PASS | change_me | Password to access code-server |
š” Tip: Git configuration can be updated later inside the container if needed.
Mount a local folder to persist your workspace:
docker run -d \
--name my-angular \
-p {port}:4200 \
-v {yourPath}:/home/angular/workspace \
aurelien0713/angular:{tag}
If you want to use the current directory :
%cd% on Windows$(pwd) on Linux / macOSExample:
docker run -d --name my-angular -p 4200:4200 -v %cd%:/home/angular/workspace aurelien0713/angular:latest
CODESRV_PASS before exposing to public networks.http://localhost:{port}.ng new my-app
cd my-app
ng serve
Inside the container:
/home/angular/workspace
āā my-app/ # Your Angular projects
āā .vscode/ # VS Code settings
āā node_modules/ # Dependencies (inside container)
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
Content type
Image
Digest
sha256:2e41bd606ā¦
Size
448.2 MB
Last updated
7 months ago
docker pull aurelien0713/angular