cear-audiolab/Dockerfile

24 lines
459 B
Docker
Raw Normal View History

2023-10-31 03:24:17 +01:00
FROM node:16-alpine as angular
2023-10-31 03:54:59 +01:00
WORKDIR app
2023-10-31 03:24:17 +01:00
COPY inc ./
RUN npm install -g @angular/cli
RUN ng config -g cli.warnings.versionMismatch false
RUN npm install
2023-10-31 03:54:59 +01:00
RUN ng build
# nginx base image
FROM nginx:1.16.0-alpine
RUN chmod 777 /var/cache/nginx /var/run
# copy static contents of project to nginx html
RUN rm -rf /usr/share/nginx/html/*
COPY --from=angular /app/dist/cear-rio/browser /usr/share/nginx/html
EXPOSE 8080
2023-10-31 03:24:17 +01:00
2023-10-31 03:54:59 +01:00
CMD ["nginx", "-g", "daemon off;"]