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

32 lines
753 B
Docker

#
# Dockerfile for jsonwire-grid
#
FROM golang:alpine AS build
RUN apk add --no-cache git file
RUN go get github.com/qa-dev/jsonwire-grid
RUN file /go/bin/jsonwire-grid
FROM alpine
MAINTAINER EasyPi Software Foundation
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 -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
COPY --from=build /go/bin/jsonwire-grid /usr/local/bin/
EXPOSE 4444
ENTRYPOINT ["jsonwire-grid"]