Skip to content

Commit f09fc05

Browse files
authored
Merge pull request #989 from SELISEdigitalplatforms/fix/docker-build
[FIX] Build fails due to memory overuse
2 parents 8e559d3 + 450b54a commit f09fc05

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.git
2+
node_modules
3+
build
4+
dist
5+
coverage
6+
.vscode
7+
.cursor
8+
.idea
9+
.DS_Store
10+
*.log
11+
.env.local
12+
storybook-static

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ WORKDIR /app
44

55
COPY package*.json ./
66

7-
RUN npm install
7+
RUN npm install
88

99
COPY . .
1010

1111
ARG ci_build
1212

1313
RUN mkdir -p /app/log
1414

15-
RUN npm run build:${ci_build}
15+
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build:${ci_build}
1616

1717
FROM nginx:stable-alpine
1818

0 commit comments

Comments
 (0)