dispatch/Dockerfile

25 lines
458 B
Docker
Raw Normal View History

# Build
FROM golang:alpine AS build
RUN apk add --update git make build-base && \
rm -rf /var/cache/apk/*
WORKDIR /go/src/github.com/khlieng/dispatch
COPY . /go/src/github.com/khlieng/dispatch
2018-12-02 06:39:23 +00:00
RUN chmod +x install.sh && ./install.sh
# Runtime
FROM alpine
RUN apk add --update ca-certificates && \
rm -rf /var/cache/apk/*
2018-12-02 06:39:23 +00:00
COPY --from=build /go/bin/dispatch /dispatch
EXPOSE 80/tcp
VOLUME ["/data"]
2015-12-11 03:35:48 +00:00
ENTRYPOINT ["/dispatch"]
2016-01-04 18:26:32 +00:00
CMD ["--dir=/data"]