ekster/Dockerfile.alpine
Peter Stuifzand 6c86be1aba
Some checks failed
continuous-integration/drone/push Build is failing
Cleanup of build files
2019-08-07 00:07:45 +02:00

17 lines
448 B
Docker

# build stage
FROM golang:1.12.0-alpine3.7 AS build-env
RUN apk --no-cache add git
ENV CGO_ENABLED=0
RUN go get p83.nl/go/ekster/...
# final stage
FROM alpine:3.7
RUN apk --no-cache add ca-certificates
RUN ["mkdir", "-p", "/opt/micropub"]
WORKDIR /opt/micropub
EXPOSE 80
COPY --from=build-env /go/bin/eksterd /app/
RUN ["mkdir", "/app/templates"]
COPY --from=build-env /go/src/p83.nl/go/ekster/templates /app/templates
ENTRYPOINT ["/app/eksterd"]