我有为 Angular 应用程序编写的 Dockerfile:
#### Stage 1: Build the angular application
FROM node:12.4.0-alpine as build
# Configure the main working directory inside the docker image.
# This is the base directory used in any further RUN, COPY, and ENTRYPOINT
# commands.
WORKDIR /app
# Copy the package.json as well as the package-lock.json and install
# the dependencies. This is a separate step so the dependencies
# will be cached unless changes to one of those two files
# are made. …Run Code Online (Sandbox Code Playgroud)