Skip to content

Commit

Permalink
feat: add minio mc in docker (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessy2 committed Dec 7, 2023
1 parent 0c3ed03 commit 4baef0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ COPY . ./
RUN go mod tidy && \
go build -o s3sync ./cli

# minio mc
FROM minio/mc:latest AS mc

# final stage
FROM debian:stable-slim

Expand Down Expand Up @@ -49,6 +52,7 @@ ENV XDG_CONFIG_HOME=/app/backup-x-files

COPY --from=builder /app/backup-x /app/backup-x
COPY --from=s3sync /src/s3sync/s3sync /usr/local/bin/s3sync
COPY --from=mc /usr/bin/mc /usr/bin/mc

EXPOSE 9977
ENTRYPOINT ["/app/backup-x"]

0 comments on commit 4baef0b

Please sign in to comment.