From 60550f6364ccbd68e322e64cfb905216d435964b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick=20Pruneau?= Date: Mon, 23 Feb 2026 15:58:06 -0500 Subject: [PATCH] Updated dockerfile --- Dockerfile | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index fa43432..c4c69ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,7 @@ -# Step 1 - Building the app -FROM node:22 AS build -WORKDIR /app -COPY package*.json ./ -# Install dependencies -RUN npm install -g @quasar/cli -COPY . . -RUN npm ci -RUN npm run build - -# Step 2 - Move Applicatin to Nginx FROM nginx:alpine -COPY --from=build /app/dist/spa /usr/share/nginx/html RUN mkdir /usr/share/nginx/html/src -COPY --from=build /app/src /usr/share/nginx/html/src - -COPY env.sh /docker-entrypoint.d/env.sh -RUN dos2unix /docker-entrypoint.d/env.sh -RUN chmod +x /docker-entrypoint.d/env.sh - -ENTRYPOINT ["/docker-entrypoint.sh"] - +COPY dist /usr/share/nginx/html +COPY source /usr/share/nginx/html/src +RUN ls -la /usr/share/nginx/html/src EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file