Skip to content

Commit

Permalink
fixup! BB-295 - fix image build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerkesni committed Dec 15, 2022
1 parent 7df7f4d commit 8c80a85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz

COPY package.json yarn.lock /usr/src/app/
COPY . /usr/src/app
RUN yarn install --ignore-engines --frozen-lockfile --production --network-concurrency 1 \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf ~/.node-gyp \
&& rm -rf /tmp/yarn-*
COPY . /usr/src/app
RUN yarn build

################################################################################
Expand All @@ -47,10 +46,11 @@ RUN apt-get update && \
WORKDIR /usr/src/app

# Keep the .git directory in order to properly report version
COPY . /usr/src/app
COPY --from=builder /usr/src/app/dist ./dist/
COPY --from=builder /usr/src/app/node_modules ./node_modules/
COPY --from=builder /usr/local/bin/dockerize /usr/local/bin/


ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]

EXPOSE 8900

0 comments on commit 8c80a85

Please sign in to comment.