Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akadapa patch 3 #158

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM node:20 as buildContainer
FROM node:22-alpine3.19 as buildContainer
WORKDIR /app
COPY . /app
RUN npm install -g npm@latest
RUN npm install --legacy-peer-deps

# max-old-space is needed to avoid any compilation issues because of missing memory
ENV NODE_OPTIONS --max-old-space-size=8192
ENV NODE_OPTIONS --max-old-space-size=12288
RUN npm run build:ssr

FROM node:20-alpine
FROM node:22-alpine3.19

WORKDIR /app
COPY --from=buildContainer /app/package.json /app
Expand All @@ -20,6 +20,9 @@ RUN npm install pm2@latest -g
# Get all the code needed to run the app
COPY --from=buildContainer /app/dist /app/dist

RUN apk update
RUN apk upgrade zlib

EXPOSE 4000

ENV NODE_ENV=production
Expand Down
5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pipeline {
string(name: 'ENVIRONMENT', defaultValue: 'ci', description: 'Role Name (mandatory)')
}
agent {
label 'ncats && dpi && ci && pharos'
label 'ncats && build'
}
triggers {
pollSCM('H/5 * * * *')
Expand Down Expand Up @@ -88,6 +88,9 @@ pipeline {
}
}
stage('deploy docker') {
agent {
node { label 'ncats && dpi && ci && pharos' }
}
steps {
configFileProvider([
configFile(fileId: 'deploy.sh', targetLocation: 'deploy.sh'),
Expand Down
Loading