Skip to content

Commit ac672c4

Browse files
committed
Create traildepot folder during Docker build.
1 parent 6bb517a commit ac672c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@ COPY . .
3232

3333
RUN RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-gnu --release --bin trail
3434

35+
3536
FROM alpine:3.20 AS runtime
3637
RUN apk add --no-cache tini curl
3738

3839
COPY --from=builder /app/target/x86_64-unknown-linux-gnu/release/trail /app/
3940

4041
# When `docker run` is executed, launch the binary as unprivileged user.
4142
RUN adduser -D trailbase
43+
44+
RUN mkdir -p /app/traildepot
45+
RUN chown trailbase /app/traildepot
4246
USER trailbase
4347

4448
WORKDIR /app

0 commit comments

Comments
 (0)