mirror of
https://github.com/sstent/containers.git
synced 2026-01-25 16:41:51 +00:00
26 lines
1.1 KiB
Docker
26 lines
1.1 KiB
Docker
|
|
FROM alpine:latest
|
|
ARG TARGETPLATFORM
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
ARG TARGETVARIANT
|
|
ARG BUILDPLATFORM
|
|
ARG BUILDOS
|
|
ARG BUILDARCH
|
|
ARG BUILDVARIANT
|
|
ARG RELEASE=latest
|
|
RUN apk add --no-cache --virtual .run-deps rsync openssh tzdata curl ca-certificates flock bash tar wget unzip && rm -rf /var/cache/apk/*
|
|
RUN echo $RELEASE
|
|
RUN echo $TARGETPLATFORM $TARGETOS $TARGETARCH $TARGETVARIANT $BUILDPLATFORM $BUILDOS $BUILDARCH $BUILDVARIANT
|
|
RUN env
|
|
RUN wget -P /tmp https://github.com/benbjohnson/litestream/releases/download/${RELEASE}/litestream-${RELEASE}-linux-arm7-static.tar.gz && \
|
|
tar -C /usr/local/bin/ -xzvf /tmp/litestream-${RELEASE}-linux-arm7-static.tar.gz
|
|
|
|
COPY docker-entrypoint.sh /
|
|
# COPY litestream /usr/local/bin/litestream
|
|
RUN chmod +x /docker-entrypoint.sh
|
|
RUN chmod +x /usr/local/bin/litestream
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
CMD ["bash"] |