diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dfdb3584..bb63439a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,3 +20,4 @@ jobs: tags: ${{ steps.metadata.outputs.tags }} labels: ${{ steps.metadata.outputs.labels }} containerfiles: Dockerfile + build-args: --ulimit nofile=65535:65535 diff --git a/Dockerfile b/Dockerfile index cfe569e4..b07d6a45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.6.0-alpine3.17 as backendBuild +FROM node:20.12.2-alpine3.18 as backendBuild LABEL stage=build ENV NODE_ENV=PRODUCTION @@ -6,11 +6,13 @@ COPY oss-api/ ./ WORKDIR /oss-api +RUN npm install -g npm@10.5.2 + RUN npm install RUN npm run build -FROM node:20.6.0-alpine3.17 as frontendBuild +FROM node:20.12.2-alpine3.18 as frontendBuild LABEL stage=build ENV NODE_ENV=PRODUCTION @@ -20,11 +22,13 @@ RUN cd /frontend/ WORKDIR /frontend/ +RUN npm install -g npm@10.5.2 + RUN npm install RUN npm run build:prod -FROM node:20.6.0-alpine3.17 as prod +FROM node:20.12.2-alpine3.18 as prod COPY --from=backendBuild dist dist diff --git a/client/index.html b/client/index.html index ae9990a9..58af4da6 100644 --- a/client/index.html +++ b/client/index.html @@ -7,11 +7,12 @@ - - - - + + + + +