-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (22 loc) · 1006 Bytes
/
Dockerfile
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
FROM alpine:3.12 as builder
RUN apk add --no-cache curl
RUN cd /root && curl -L https://github.com/harmony-development/scherzo/releases/download/continuous/scherzo > scherzo && chmod +x scherzo
FROM alpine:3.12
EXPOSE 2289
RUN mkdir -p /srv/scherzo
COPY --from=builder /root/scherzo /srv/scherzo/
RUN echo "listen_on_localhost = false" > /srv/scherzo/config.toml
RUN set -x ; \
addgroup -Sg 82 www-data 2>/dev/null ; \
adduser -S -D -H -h /srv/scherzo -G www-data -g www-data www-data 2>/dev/null ; \
addgroup www-data www-data 2>/dev/null && exit 0 ; exit 1
RUN chown -cR www-data:www-data /srv/scherzo
RUN apk add --no-cache \
curl \
ca-certificates \
libgcc
VOLUME ["/srv/scherzo/db", "/srv/scherzo/media", "/srv/scherzo/logs"]
HEALTHCHECK --start-period=2s CMD curl --fail -s http://localhost:2289/_harmony/about || curl -k --fail -s https://localhost:2289/_harmony/about || exit 1
USER www-data
WORKDIR /srv/scherzo
ENTRYPOINT [ "/srv/scherzo/scherzo" ]