This image provides a node container with Angular CLI installed and support to build static angular sites with Scully.
- Angular CLI
- chromium
- openssh-client
- ansible
- rsync
The image is built also in two vanilla flavours, one based on bullseye-slim
and one on alpine
versions of node docker image.
This version has only the Angular CLI added on top of the base node image.
To use one of this versions add -bullseye-slim
or -alpine
suffix to the standard image.
See tags list on DockerHub for further details.
To build the docker image you can use the docker build
command.
Build arguments:
BUILD_DATE
build datetimeNODE_VERSION
node image base version to useNG_CLI_VERSION
desidered Angular CLI version
Following is an example of building the image with node 14.17.0
and Angular CLI 11.2.5
. The parameter BUILD_DATE
is generated with the current datetime using date
command.
NODE_VERSION=14.17.0 && \
NG_CLI_VERSION=11.2.5 && \
docker build \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg NODE_VERSION=${NODE_VERSION} \
--build-arg NG_CLI_VERSION=${NG_CLI_VERSION} \
-t bmeme/angular-dev:${NG_CLI_VERSION}-${NODE_VERSION} .
The above command will build the image with the tag bmeme/angular-dev:11.2.5-14.17.0
.
To test the newly created image, you can use docker run
.
docker run --rm -it bmeme/angular-dev:11.2.5-14.17.0 ng version
Instead of building the docker image yourself, you can use our bmeme/angular-dev images from Docker Hub.
Any feedback, bug report or idea is extremely welcome.
Reach us through our website or send us an email at info@bonsaimeme.com.