This repository has been archived on 2023-06-20. You can view files and clone it, but cannot push or open issues or pull requests.
Angular_App/Dockerfile

19 lines
288 B
Docker
Raw Normal View History

2022-10-20 02:59:49 +10:00
FROM node:16 as build-step
RUN mkdir -p /app
WORKDIR /app
COPY package.json /app
RUN npm install
2022-10-20 11:58:12 +10:00
2022-10-20 12:03:24 +10:00
FROM build-step
2022-10-20 11:58:12 +10:00
WORKDIR /app
2022-10-20 02:59:49 +10:00
COPY . /app
RUN npm run build --prod
CMD npm run start
# FROM nginx:1.20.1
# COPY --from=build-step /app/dist/nedvach /usr/share/nginx/html
# EXPOSE 4200:80