NodeJS base images for @angular/cli Apps - with more focus on alpine linux
1.0K
Create a Dockerfile with the following contents
FROM omostan/angular-cli:latest as angular-built
WORKDIR /usr/src/app
COPY package.json package.json RUN npm install --silent
COPY . .
RUN ng build --prod
FROM nginx:alpine LABEL author="Stanley Omoregie" COPY nginx.conf /etc/nginx/conf.d/default.conf COPY --from=angular-built /usr/src/app/dist /usr/share/nginx/html EXPOSE 80 443 CMD [ "nginx", "-g", "daemon off;" ]
Content type
Image
Digest
Size
55.5 MB
Last updated
about 5 years ago
docker pull omostan/angular-cli