Skip to content

Commit 8c80a85

Browse files
author
Kerkesni
committed
fixup! BB-295 - fix image build issue
1 parent 7df7f4d commit 8c80a85

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
2828
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
2929
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
3030

31-
COPY package.json yarn.lock /usr/src/app/
31+
COPY . /usr/src/app
3232
RUN yarn install --ignore-engines --frozen-lockfile --production --network-concurrency 1 \
3333
&& rm -rf /var/lib/apt/lists/* \
3434
&& rm -rf ~/.node-gyp \
3535
&& rm -rf /tmp/yarn-*
36-
COPY . /usr/src/app
3736
RUN yarn build
3837

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

4948
# Keep the .git directory in order to properly report version
49+
COPY . /usr/src/app
50+
COPY --from=builder /usr/src/app/dist ./dist/
5051
COPY --from=builder /usr/src/app/node_modules ./node_modules/
5152
COPY --from=builder /usr/local/bin/dockerize /usr/local/bin/
5253

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

5656
EXPOSE 8900

0 commit comments

Comments
 (0)