Answers for "angular dockerfile nginx"

0

angular 9 dockerfile

FROM node:12.16.2-stretch-slim AS build
COPY . /app
WORKDIR /app
RUN npm install && npm run build:prod && rm -rf node_modules/

FROM nginx:1.17.9-alpine as runtime
COPY --from=build /app/default.conf /etc/nginx/conf.d/
COPY --from=build /app/dist/ /var/www
EXPOSE 80
Posted by: Guest on May-01-2020
1

dockerfile nginx example

$ docker run --name mynginx2 --mount type=bind,source=/var/www,target=/usr/share/nginx/html,readonly --mount source=/var/nginx/conf,target=/etc/nginx/conf,readonly -p 80:80 -d nginx
Posted by: Guest on March-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language