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

27 lines
738 B
Docker
Raw Normal View History

2019-11-03 10:19:43 +02:00
#
# Dockerfile for jsonwire-grid
#
2019-11-24 03:13:47 +02:00
FROM alpine:3
2019-11-03 10:19:43 +02:00
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"]