2018-05-16 18:10:23 +00:00
|
|
|
# build stage
|
|
|
|
FROM golang:1.10.2-alpine3.7 AS build-env
|
|
|
|
RUN apk --no-cache add git
|
|
|
|
RUN go get github.com/pstuifzand/ekster/cmd/eksterd
|
|
|
|
|
|
|
|
# final stage
|
|
|
|
FROM alpine
|
|
|
|
RUN apk --no-cache add ca-certificates
|
2018-05-16 19:21:00 +00:00
|
|
|
RUN ["mkdir", "-p", "/opt/micropub"]
|
|
|
|
WORKDIR /opt/micropub
|
2018-05-16 18:10:23 +00:00
|
|
|
EXPOSE 80
|
|
|
|
COPY --from=build-env /go/bin/eksterd /app/
|
2018-06-30 08:39:14 +00:00
|
|
|
COPY --from=build-env /go/bin/ek /app/
|
2018-05-16 19:21:00 +00:00
|
|
|
ENTRYPOINT ["/app/eksterd"]
|