Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mncdg committed Aug 20, 2024
1 parent cf29f3d commit 572b45c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions debridge_node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:20.16.0-alpine as builder
RUN apk update && apk add --virtual build-dependencies build-base gcc

WORKDIR /build

COPY package.json /build
COPY package-lock.json /build
RUN npm ci
RUN npm rebuild

COPY tsconfig.json /build
COPY tsconfig.build.json /build
Expand All @@ -16,7 +16,6 @@ RUN mkdir stats
RUN npm run build

FROM node:20.16.0-alpine
RUN apk update && apk add --virtual build-dependencies build-base gcc
WORKDIR /app
COPY --from=builder /build/dist /app/dist
COPY --from=builder /build/node_modules /app/node_modules
Expand Down

0 comments on commit 572b45c

Please sign in to comment.