From bf78e16d38cd56efd1411056315c3e084c6c9042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Tue, 26 Nov 2024 18:22:33 +0100 Subject: [PATCH 1/2] chore: bump NodeJS to v20 LTS --- govtool/frontend/.nvmrc | 2 +- govtool/frontend/Dockerfile | 2 +- govtool/frontend/Dockerfile.qovery | 2 +- govtool/frontend/Dockerfile.qovey | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/govtool/frontend/.nvmrc b/govtool/frontend/.nvmrc index a77793ecc..f812e4592 100644 --- a/govtool/frontend/.nvmrc +++ b/govtool/frontend/.nvmrc @@ -1 +1 @@ -lts/hydrogen +20.18.1 \ No newline at end of file diff --git a/govtool/frontend/Dockerfile b/govtool/frontend/Dockerfile index c1656099a..5186b390e 100644 --- a/govtool/frontend/Dockerfile +++ b/govtool/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine as builder +FROM node:20.18.1-alpine as builder ARG VITE_APP_ENV='beta' ARG VITE_BASE_URL diff --git a/govtool/frontend/Dockerfile.qovery b/govtool/frontend/Dockerfile.qovery index 33e83cbe9..ddc6c1288 100644 --- a/govtool/frontend/Dockerfile.qovery +++ b/govtool/frontend/Dockerfile.qovery @@ -1,4 +1,4 @@ -FROM node:18-alpine as builder +FROM node:20.18.1-alpine as builder ARG VITE_APP_ENV='beta' ARG VITE_BASE_URL diff --git a/govtool/frontend/Dockerfile.qovey b/govtool/frontend/Dockerfile.qovey index 33e83cbe9..ddc6c1288 100644 --- a/govtool/frontend/Dockerfile.qovey +++ b/govtool/frontend/Dockerfile.qovey @@ -1,4 +1,4 @@ -FROM node:18-alpine as builder +FROM node:20.18.1-alpine as builder ARG VITE_APP_ENV='beta' ARG VITE_BASE_URL From 341ba590712ba28d2c911bfe2ae1d6335fd06fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Tue, 26 Nov 2024 18:27:24 +0100 Subject: [PATCH 2/2] chore: remove duplicated Dockerfile --- govtool/frontend/Dockerfile.qovey | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 govtool/frontend/Dockerfile.qovey diff --git a/govtool/frontend/Dockerfile.qovey b/govtool/frontend/Dockerfile.qovey deleted file mode 100644 index ddc6c1288..000000000 --- a/govtool/frontend/Dockerfile.qovey +++ /dev/null @@ -1,31 +0,0 @@ -FROM node:20.18.1-alpine as builder - -ARG VITE_APP_ENV='beta' -ARG VITE_BASE_URL -ARG VITE_METADATA_API_URL -ARG VITE_GTM_ID -ARG VITE_NETWORK_FLAG=0 -ARG VITE_SENTRY_DSN -ARG NPMRC_TOKEN -ARG VITE_USERSNAP_SPACE_API_KEY -ARG VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED='true' -ARG VITE_PDF_API_URL - -ENV NODE_OPTIONS=--max_old_space_size=8192 - -WORKDIR /src - -# Set npm configuration settings using environment variables -RUN npm config set @intersect.mbo:registry "https://registry.npmjs.org/" --location=global -RUN npm config set //registry.npmjs.org/:_authToken ${NPMRC_TOKEN} --location=global - -COPY package.json package-lock.json ./ -RUN npm install -COPY . . -RUN npm run build - -FROM nginx:stable-alpine -EXPOSE 80 -COPY nginx.conf /etc/nginx/conf.d/default.conf -COPY --from=builder /src/maintenance-page/index.html /usr/share/nginx/html/maintenance.html -COPY --from=builder /src/dist /usr/share/nginx/html