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 deleted file mode 100644 index 33e83cbe9..000000000 --- a/govtool/frontend/Dockerfile.qovey +++ /dev/null @@ -1,31 +0,0 @@ -FROM node:18-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