mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
improve
This commit is contained in:
+11
-11
@@ -1,15 +1,15 @@
|
||||
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
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
COPY --from=build /app/www/ /usr/share/nginx/html/
|
||||
COPY /www/ /usr/share/nginx/html/
|
||||
Reference in New Issue
Block a user