Skip to content

Commit

Permalink
fix: docker user permissions (#3711)
Browse files Browse the repository at this point in the history
This PR sets uid/gid when running our Docker containers so that any
files they touch/create will be editable by the host's user.

It also restores the `/cache` volume on mac so that subsequent
compilations use prior cached archives.

---------

Co-authored-by: Charlie Lye <karl.lye@gmail.com>
  • Loading branch information
alexghr and charlielye committed Dec 15, 2023
1 parent a288646 commit 35316fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yarn-project/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ ENTRYPOINT ["node", "--no-warnings", "/usr/src/yarn-project/cli/dest/bin/index.j

# The version has been updated in yarn-project-prod.
# Adding COMMIT_TAG here to rebuild versioned image.
ARG COMMIT_TAG=""
ARG COMMIT_TAG=""

RUN mkdir /cache && chmod 777 /cache
ENV XDG_CACHE_HOME /cache
VOLUME "/cache"

0 comments on commit 35316fc

Please sign in to comment.