Skip to content

Commit ba69488

Browse files
fix: ci job for docker image is failing
1 parent 14a239b commit ba69488

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
.yarn/cache
4+
.git

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ ADD . /usr/src/app
1414
WORKDIR /usr/src/app
1515

1616
# Install dependencies & build
17-
RUN yarn install && yarn build
17+
RUN yarn install --immutable && \
18+
yarn build
1819

1920
# Stage 2: Serve with Nginx
2021
FROM $RUNTIME

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"scripts": {
1212
"clean": "rm -rf dist",
1313
"webpack": "yarn exec webpack",
14-
"build": "yarn clean && NODE_ENV=production NODE_OPTIONS=--max-old-space-size=6144 yarn webpack",
15-
"build-dev": "yarn clean && NODE_OPTIONS=--max-old-space-size=6144 yarn webpack",
14+
"build": "yarn clean && NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 yarn webpack",
15+
"build-dev": "yarn clean && NODE_OPTIONS=--max-old-space-size=4096 yarn webpack",
1616
"start": "yarn webpack serve",
1717
"start-console": "./start-console.sh",
1818
"i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js",

0 commit comments

Comments
 (0)