awsbck 0.2.7

Utility to backup a folder to AWS S3, once or periodically.
FROM debian:bullseye-slim AS builder

ARG TARGETOS
ARG TARGETARCH

WORKDIR /awsbck

# Copy binary and adjust permissions
COPY ./${TARGETOS}_${TARGETARCH}/awsbck .
RUN chmod +x awsbck

FROM gcr.io/distroless/static-debian11

WORKDIR /awsbck

# Copy the binary with correct permissions
COPY --from=builder /awsbck/awsbck .

# We use entrypoint to allow passing arguments to the binary using `CMD`
ENTRYPOINT ["/awsbck/awsbck"]