dispatch/Dockerfile

25 lines
461 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
RUN go build .
# Runtime
FROM alpine
RUN apk add --update ca-certificates && \
rm -rf /var/cache/apk/*
COPY --from=build /go/src/github.com/khlieng/dispatch/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"]