Sign inSign up

omostan/angular-cli

By omostan

•Updated over 5 years ago

NodeJS base images for @angular/cli Apps - with more focus on alpine linux

Image
1

1.0K

omostan/angular-cli repository overview

Create a Dockerfile with the following contents

⁠base image

FROM omostan/angular-cli:latest as angular-built

⁠set working directory

WORKDIR /usr/src/app

⁠install and cache app dependencies

COPY package.json package.json RUN npm install --silent

⁠add all files and folders

COPY . .

⁠build the app

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;" ]

Tag summary

Content type

Image

Digest

Size

55.5 MB

Last updated

over 5 years ago

docker pull omostan/angular-cli