Skip to content

Commit

Permalink
hop-node: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed Jan 29, 2024
1 parent 2ac8579 commit 9768d45
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/hop-node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ COPY --chown=node:node .npmrc ./
COPY --chown=node:node packages packages

# Install root dependencies and build specific package
RUN npm install \
&& npm run build --workspace=@hop-protocol/hop-node
RUN pnpm install --prod \
&& pnpm --filter @hop-protocol/hop-node build

# Production Stage
FROM node:20.10.0-alpine
Expand All @@ -37,9 +37,7 @@ ENV GIT_REV=${GIT_REV}
WORKDIR /usr/src

# Copy built files from the build stage
COPY --from=build /usr/src/packages/hop-node /app/packages/hop-node
COPY --from=build /usr/src/node_modules /app/node_modules
COPY dist/ dist/

# Set the entry point
ENTRYPOINT ["/app/packages/hop-node/bin/hop-node"]
CMD []
CMD ["node", "dist/cli/cli.js"]

0 comments on commit 9768d45

Please sign in to comment.