From fd7e4a52a89858b4762f54620e0bb0becc476a5a Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Tue, 14 Apr 2026 09:59:04 +0100 Subject: [PATCH] change version to 14 --- dockerfile | 39 ++++++++++++++------------------------- 1 file changed, 14 insertions(+), 25 deletions(-) diff --git a/dockerfile b/dockerfile index 6ff2913e5..76cb8076f 100644 --- a/dockerfile +++ b/dockerfile @@ -1,26 +1,15 @@ -# ---------- Build Stage ---------- - FROM node:16-alpine AS build +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 - WORKDIR /app - - # Install Ionic CLI (optional but safe) - RUN npm install -g @ionic/cli@6 @angular/cli@12 - - COPY package*.json ./ - RUN npm install - - COPY . . - - # Build production app - RUN ionic build --prod - - # ---------- Run Stage ---------- - FROM nginx:alpine - - # Copy build output to nginx - COPY --from=build /app/www /usr/share/nginx/html - - # Expose port - EXPOSE 80 - - CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file +FROM nginx:latest +COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf +RUN rm -rf /usr/share/nginx/html/* +COPY /www/ /usr/share/nginx/html/ \ No newline at end of file