Skip to content

Commit

Permalink
chore: use docker root user (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielc authored Feb 1, 2024
1 parent 84fa5e3 commit d74f6d6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 ./

Expand Down

0 comments on commit d74f6d6

Please sign in to comment.