Skip to content

Commit

Permalink
Merge pull request #1264 from edenia/fix/deployment
Browse files Browse the repository at this point in the history
fix(dockerfile): copy dist instead of src directory
  • Loading branch information
fagomezra committed Aug 24, 2023
2 parents 8a9fa44 + e99efa6 commit e48d21b
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 e48d21b

Please sign in to comment.