-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
37 lines (26 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM debian:bullseye-slim AS litestream
ARG TARGETARCH
ENV LITESTREAM_VERSION=v0.3.13
RUN apt update && \
apt install -y curl && \
TARGETARCH=$([ "$TARGETARCH" = "aarch64" ] && echo "arm64" || echo "$TARGETARCH"); \
curl -f -L https://github.com/benbjohnson/litestream/releases/download/${LITESTREAM_VERSION}/litestream-${LITESTREAM_VERSION}-linux-${TARGETARCH}.tar.gz -o /litestream.tar.gz ; \
mkdir -p /litestream && \
tar -xzf /litestream.tar.gz -C /litestream
FROM debian:bullseye-slim AS envsubst
ARG TARGETARCH
ENV ENVSUBST_VERSION=v1.4.2
RUN apt update && \
apt install -y curl && \
TARGETARCH=$([ "$TARGETARCH" = "aarch64" ] && echo "arm64" || echo "x86_64"); \
curl -f -L https://github.com/a8m/envsubst/releases/download/v1.2.0/envsubst-Linux-${TARGETARCH} -o /envsubst && \
chmod +x /envsubst
FROM louislam/uptime-kuma:1.23.16-debian
ENV DATA_DIR=./data/
COPY --from=litestream /litestream/litestream /usr/local/bin/litestream
COPY --from=envsubst /envsubst /usr/local/bin/envsubst
COPY ./litestream /srv/litestream
RUN mkdir -p /app/data
COPY entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
CMD ["/entrypoint.sh"]