2019-05-14 04:48:16 -04:00
|
|
|
# Image metadata and config.
|
2021-03-30 05:48:06 -04:00
|
|
|
# Ideally, the image version should be what we use on CI.
|
|
|
|
# See `executors > browsers-executor` in `.circleci/config.yml`.
|
|
|
|
FROM circleci/node:10-browsers
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
# Configure `Node.js`/`npm` and install utilities.
|
|
|
|
RUN npm config --global set user root
|
2021-03-30 05:48:06 -04:00
|
|
|
|
|
|
|
# Ideally, the version should be what we use on CI.
|
|
|
|
# See `commands > overwrite_yarn` in `.circleci/config.yml`.
|
|
|
|
RUN npm install --global yarn@latest
|
2019-05-14 04:48:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
# Go! (And keep going.)
|
|
|
|
CMD ["tail", "--follow", "/dev/null"]
|