Skip to content

Commit

Permalink
feat: docker entrypoint works with any workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Oct 27, 2023
1 parent c51d34d commit a7f9f6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yarn-project/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ FROM node:18-alpine

COPY --from=builder /usr/src/ /usr/src/

WORKDIR /usr/src/yarn-project/cli

ENV XDG_CACHE_HOME /cache
RUN mkdir /cache && chmod 777 /cache
VOLUME [ "/cache" ]
Expand All @@ -29,4 +27,6 @@ VOLUME [ "/cache" ]
RUN addgroup -S aztec && adduser -S aztec -G aztec
USER aztec

ENTRYPOINT ["yarn", "start"]
ENV NODE_OPTIONS "--no-warnings"

ENTRYPOINT ["node", "/usr/src/yarn-project/cli/dest/bin/index.js"]

0 comments on commit a7f9f6b

Please sign in to comment.