Skip to content

Commit

Permalink
Merge branch 'w/8.3/bugfix/BB-364/smallerImageSize' into tmp/octopus/…
Browse files Browse the repository at this point in the history
…w/8.4/bugfix/BB-364/smallerImageSize
  • Loading branch information
bert-e committed Mar 3, 2023
2 parents 279a636 + 1f2c2f6 commit 2b419fe
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions images/nodesvc-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
FROM registry.scality.com/federation/nodesvc-base:7.10.5.0
FROM registry.scality.com/federation/nodesvc-base:7.10.7.0 as builder

WORKDIR ${HOME_DIR}/backbeat
WORKDIR /tmp/build

COPY ./package.json ./yarn.lock /tmp/build

COPY ./package.json ./yarn.lock ${HOME_DIR}/backbeat
RUN yarn cache clean \
&& yarn install --production --frozen-lockfile --ignore-optional --ignore-engines --network-concurrency 1 \
&& yarn cache clean

# Remove when gitcache is sorted out
RUN rm /root/.gitconfig
################################################################################
FROM registry.scality.com/federation/nodesvc-base:7.10.7.0

RUN yarn install --production --frozen-lockfile --network-concurrency 1
WORKDIR ${HOME_DIR}/backbeat

COPY . ${HOME_DIR}/backbeat
COPY --from=builder /tmp/build/node_modules ./node_modules/

RUN chown -R ${USER} ${HOME_DIR}/backbeat

Expand Down

0 comments on commit 2b419fe

Please sign in to comment.