18 lines
994 B
Docker
18 lines
994 B
Docker
FROM golang:1.26.6-alpine@sha256:3889b425f035be855a72fb4755265311293b6d414521f0a519d819df32222d83 AS rclone
|
|
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
|
|
CGO_ENABLED=0 go install -trimpath \
|
|
-ldflags '-s -X github.com/rclone/rclone/fs.Version=v1.75.0' \
|
|
github.com/rclone/rclone@v1.75.0
|
|
|
|
FROM postgres:16-alpine@sha256:cf78e76683b9ca8c5733cbbdce6c9262b45b6767934dd0a95e671f9a0fc20685
|
|
ARG VCS_REF=development
|
|
ARG BUILD_DATE=unknown
|
|
LABEL org.opencontainers.image.title="MobilityOps backup tools" \
|
|
org.opencontainers.image.source="https://github.com/ITWorxBE/MobilityOps" \
|
|
org.opencontainers.image.revision="$VCS_REF" \
|
|
org.opencontainers.image.created="$BUILD_DATE"
|
|
COPY --from=rclone /go/bin/rclone /usr/local/bin/rclone
|
|
# The PostgreSQL image's entrypoint uses gosu only when starting the database server;
|
|
# this tools-only image always overrides that entrypoint with the sync worker.
|
|
RUN rm -f /usr/local/bin/gosu
|