statping/cmd/Dockerfile

27 lines
804 B
Docker
Raw Normal View History

2018-06-24 07:38:50 +00:00
FROM alpine:latest
MAINTAINER 'Hunter Long (https://github.com/hunterlong)'
2018-08-16 06:22:20 +00:00
# Statup 'dev' image that will download the latest version of Statup from github
2018-06-24 08:18:59 +00:00
2018-08-16 06:22:20 +00:00
RUN apk --no-cache add libstdc++ ca-certificates curl grep sed
RUN export VERSION=$(curl --silent "https://api.github.com/repos/hunterlong/statup/releases/latest" \
| grep '"tag_name":' \
| sed -E 's/.*"([^"]+)".*/\1/'); \
wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-alpine.tar.gz;
RUN tar -xvzf statup-linux-alpine.tar.gz && \
chmod +x statup && \
mv statup /usr/local/bin/statup
RUN statup version
2018-06-28 07:28:07 +00:00
2018-06-29 05:32:50 +00:00
RUN wget -q https://assets.statup.io/sass && \
2018-06-28 07:28:07 +00:00
chmod +x sass && \
mv sass /usr/local/bin/sass
2018-06-29 00:01:43 +00:00
ENV IS_DOCKER=true
2018-06-28 07:28:07 +00:00
2018-06-19 00:01:03 +00:00
WORKDIR /app
2018-06-24 08:18:59 +00:00
VOLUME /app
EXPOSE 8080
ENTRYPOINT statup