mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-12 11:15:04 +02:00
27 lines
747 B
Docker
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"]
|