diff --git a/Dockerfile b/Dockerfile index 8c74dfb13..ad3cc7588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,6 @@ FROM public.ecr.aws/r5b3e0r5/3box/rust-builder:latest as builder RUN mkdir -p /home/builder/rust-ceramic WORKDIR /home/builder/rust-ceramic -# Use the same ids as the parent docker image by default -ARG UID=1001 -ARG GID=1001 - # Define the type of build to make. One of release or debug. ARG BUILD_MODE=release @@ -16,8 +12,8 @@ COPY . . # Build application using a docker cache # To clear the cache use: # docker builder prune --filter type=exec.cachemount -RUN --mount=type=cache,target=/home/builder/.cargo,uid=$UID,gid=$GID \ - --mount=type=cache,target=/home/builder/rust-ceramic/target,uid=$UID,gid=$GID \ +RUN --mount=type=cache,target=/home/builder/.cargo \ + --mount=type=cache,target=/home/builder/rust-ceramic/target \ make $BUILD_MODE && \ cp ./target/release/ceramic-one ./