Skip to content

Commit

Permalink
fix(dockerfile): copy dist instead of src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
leisterfrancisco committed Aug 24, 2023
1 parent cbd5f0b commit e99efa6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hapi-evm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ WORKDIR /app
FROM base AS builder
COPY package.json yarn.lock ./
RUN yarn --ignore-optional
COPY ./dist ./src
COPY ./ ./
RUN yarn build

# ---------- Release ----------
FROM base AS release
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/src ./src
COPY --from=builder /app/dist ./src
USER node
CMD ["node", "./src/index.js"]

0 comments on commit e99efa6

Please sign in to comment.