1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/logspout/arm/Dockerfile
2018-08-05 19:04:47 +08:00

28 lines
698 B
Docker

#
# Dockerfile for logspout-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
ENV LOGSPOUT_VER 3.2.5
ENV LOGSPOUT_URL https://github.com/gliderlabs/logspout/archive/v${LOGSPOUT_VER}.tar.gz
RUN set -xe \
&& apk add --no-cache curl tar \
&& mkdir -p /src \
&& curl -sSL ${LOGSPOUT_URL} | tar xz --strip 1 -C /src \
&& cd /src \
&& ./build.sh "$(cat VERSION)" \
&& cd / \
&& rm -rf /src \
&& apk del curl tar
VOLUME /mnt/routes
EXPOSE 80
ENTRYPOINT ["/bin/logspout"]
ONBUILD COPY ./build.sh /src/build.sh
ONBUILD COPY ./modules.go /src/modules.go
ONBUILD RUN cd /src && chmod +x ./build.sh && sleep 1 && sync && ./build.sh "$(cat VERSION)-custom"