saveDockerFile

This commit is contained in:
Evandre Silva
2022-10-12 10:43:31 +01:00
parent 9781e6801c
commit 222aa61da6
+10 -10
View File
@@ -1,13 +1,13 @@
# FROM node:14 as build
# WORKDIR /app
# COPY ./package*.json /app/
# RUN npm config set unsafe-perm true
# RUN npm install -g ionic
# RUN npm config set legacy-peer-deps true
# RUN npm i -D typescript@4.3.5
# RUN npm install --save --legacy-peer-deps
# COPY ./ /app/
# RUN ionic build --prod
FROM node:14 as build
WORKDIR /app
COPY ./package*.json /app/
RUN npm config set unsafe-perm true
RUN npm install -g ionic
RUN npm config set legacy-peer-deps true
RUN npm i -D typescript@4.3.5
RUN npm install --save --legacy-peer-deps
COPY ./ /app/
RUN ionic build --prod
FROM nginx:alpine
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf