Skip to content

Commit

Permalink
chore: run with nodejs instead of yarn in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Jun 13, 2024
1 parent 7af62c2 commit 34d7a3e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,14 @@ RUN yarn workspace sync-daemon run build
# This will remove all dev dependencies and install production deps only
RUN yarn workspaces focus -A --production

CMD ["yarn", "workspace", "sync-daemon", "run", "start"]
# Run phase
FROM node:20-alpine AS runner

WORKDIR /app

# Copy only the necessary files from the build phase
COPY --from=builder /app .

WORKDIR /app/packages/daemon/

CMD ["node", "dist/index.js"]

0 comments on commit 34d7a3e

Please sign in to comment.