Files
doneit-web/dockerfile
T

14 lines
404 B
Docker
Raw Normal View History

2022-06-02 16:11:57 +01:00
FROM node:14 as build
WORKDIR /app
COPY ./package*.json /app/
2022-04-14 18:45:50 +01:00
RUN npm config set unsafe-perm true
2022-06-02 16:11:57 +01:00
RUN npm install -g ionic
RUN npm config set legacy-peer-deps true
RUN npm install --save --legacy-peer-deps
COPY ./ /app/
2022-06-02 16:51:52 +01:00
RUN ionic build --prod
2022-06-02 16:11:57 +01:00
FROM nginx:alpine
2022-06-07 13:38:45 +01:00
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
2022-06-02 16:11:57 +01:00
RUN rm -rf /usr/share/nginx/html/*
COPY --from=build /app/www/ /usr/share/nginx/html/