Skip to content

Commit 35316fc

Browse files
alexghrcharlielye
andauthored
fix: docker user permissions (AztecProtocol#3711)
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>
1 parent a288646 commit 35316fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

yarn-project/cli/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ ENTRYPOINT ["node", "--no-warnings", "/usr/src/yarn-project/cli/dest/bin/index.j
33

44
# The version has been updated in yarn-project-prod.
55
# Adding COMMIT_TAG here to rebuild versioned image.
6-
ARG COMMIT_TAG=""
6+
ARG COMMIT_TAG=""
7+
8+
RUN mkdir /cache && chmod 777 /cache
9+
ENV XDG_CACHE_HOME /cache
10+
VOLUME "/cache"

0 commit comments

Comments
 (0)