Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit 180821a

Browse files
committed
Fighting yarn
yarnpkg/rfcs#53
1 parent cc98f67 commit 180821a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ docker:
3434
before_script:
3535
- echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
3636
script:
37-
- docker build -t betagouv/mrs:$CI_COMMIT_SHA --build-arg GIT_COMMIT=$CI_COMMIT_SHA .
37+
- docker build --shm-size 256M -t betagouv/mrs:$CI_COMMIT_SHA --build-arg GIT_COMMIT=$CI_COMMIT_SHA .
3838
- docker push betagouv/mrs:$CI_COMMIT_SHA
3939
- docker tag betagouv/mrs:$CI_COMMIT_SHA betagouv/mrs:$CI_COMMIT_REF_NAME
4040
- docker push betagouv/mrs:$CI_COMMIT_REF_NAME

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ USER app
2424
RUN mkdir -p ${STATIC_ROOT} ${UWSGI_SPOOLER_MOUNT} ${LOG}
2525

2626
COPY --chown=app:app yarn.lock .babelrc package.json /app/
27-
RUN cd /app && yarn install --frozen-lockfile
27+
RUN cd /app && yarn install --cache-folder /dev/shm/yarn --frozen-lockfile
2828
RUN mkdir -p src/mrs
2929
COPY --chown=app:app src/mrs/static /app/src/mrs/static
30-
RUN ls -l | grep src
3130
COPY --chown=app:app webpack.config.js /app/
3231
RUN cd /app && yarn prepare
3332

0 commit comments

Comments
 (0)