2019-05-14 04:48:16 -04:00
|
|
|
# Image metadata and config.
|
2021-04-01 15:15:44 -04:00
|
|
|
# Ideally, the Node.js version should match what we use on CI.
|
|
|
|
# See `executors > default-executor` in `.circleci/config.yml`.
|
2021-04-12 15:01:58 -04:00
|
|
|
FROM circleci/node:14-browsers
|
2021-04-01 15:15:44 -04:00
|
|
|
|
2019-05-14 04:48:16 -04:00
|
|
|
|
|
|
|
LABEL name="Angular dev environment" \
|
|
|
|
description="This image can be used to create a dev environment for building Angular." \
|
|
|
|
vendor="angular" \
|
|
|
|
version="1.0"
|
|
|
|
|
|
|
|
EXPOSE 4000 4200 4433 5000 8080 9876
|
|
|
|
|
|
|
|
|
|
|
|
# Switch to `root` (CircleCI images use `circleci` as the user).
|
|
|
|
USER root
|
|
|
|
|
|
|
|
|
2021-04-01 15:15:44 -04:00
|
|
|
# Configure `Node.js`/`npm`.
|
2019-05-14 04:48:16 -04:00
|
|
|
RUN npm config --global set user root
|
2021-03-30 05:48:06 -04:00
|
|
|
|
2019-05-14 04:48:16 -04:00
|
|
|
|
|
|
|
# Go! (And keep going.)
|
|
|
|
CMD ["tail", "--follow", "/dev/null"]
|