Dockerfile 561 Bytes
Newer Older
Romain De Laage De Bellefaye's avatar
Romain De Laage De Bellefaye committed
1
2
FROM alpine:3.13 AS downloader

3
ARG VERSION=v1.0.0-alpha.57
Romain De Laage De Bellefaye's avatar
Romain De Laage De Bellefaye committed
4
5

RUN apk add --no-cache curl jq && \
6
    curl -L $(curl https://code.podlibre.org/api/v4/projects/2/releases/${VERSION}/assets/links | jq -r .[].url | grep \.tar\.gz) -o castopod.tgz && \
7
    tar -xzf castopod.tgz
Romain De Laage De Bellefaye's avatar
Romain De Laage De Bellefaye committed
8
9
10

FROM nginx:1.19-alpine

11
VOLUME /var/www/html/media
12
13

WORKDIR /var/www/html
Lucas Clusman's avatar
Lucas Clusman committed
14
15
16
17
18
19
20

RUN apk add --no-cache curl

HEALTHCHECK --interval=30s --timeout=3s CMD curl --fail http://localhost || exit 1

COPY nginx.conf /etc/nginx/nginx.conf

21
COPY --from=downloader /castopod-host/public /var/www/html