ekster/Dockerfile.ek

14 lines
319 B
Docker
Raw Normal View History

2018-07-15 06:28:36 +00:00
# build stage
FROM golang:1.10.2-alpine3.7 AS build-env
RUN apk --no-cache add git
RUN go get p83.nl/go/ekster/cmd/ek
2018-07-15 06:28:36 +00:00
# final stage
FROM alpine:3.7
2018-07-15 06:28:36 +00:00
RUN apk --no-cache add ca-certificates
RUN ["mkdir", "-p", "/opt/micropub"]
WORKDIR /opt/micropub
EXPOSE 80
COPY --from=build-env /go/bin/ek /app/
ENTRYPOINT ["/app/ek"]