1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/jsonwire-grid/Dockerfile
2019-11-03 16:19:43 +08:00

27 lines
747 B
Docker

#
# Dockerfile for jsonwire-grid
#
FROM alpine:1.9-alpine
MAINTAINER EasyPi Software Foundation
ENV VERSION=0.5.0
ENV REPOSITORY=https://github.com/qa-dev/jsonwire-grid
ENV CONFIG_PATH=config.json
WORKDIR /etc/jsonwire-grid
RUN set -xe \
&& apk add --no-cache curl \
&& curl -sSL ${REPOSITORY}/releases/download/v${VERSION}/jsonwire-grid_${VERSION}_linux_amd64.tar.gz \
| tar xz -C /usr/local/bin jsonwire-grid \
&& curl -sSLO ${REPOSITORY}/raw/master/config-local-sample.json \
&& curl -sSLO ${REPOSITORY}/raw/master/config-sample.json \
&& curl -sSLO ${REPOSITORY}/raw/master/config-test.json \
&& ln -s config-local-sample.json ${CONFIG_PATH} \
&& apk del curl
EXPOSE 4444
ENTRYPOINT ["jsonwire-grid"]