ekster/Dockerfile.alpine
Peter Stuifzand 29023674fd
All checks were successful
continuous-integration/drone/push Build is passing
Disable GOPATH -- use newer go images
2020-07-27 22:17:06 +02:00

16 lines
471 B
Docker

# build stage
FROM golang:1.14-alpine AS build-env
RUN apk --no-cache add git
RUN CGO_ENABLED=0 go get -a -ldflags '-extldflags "-static"' p83.nl/go/ekster/...
# final stage
FROM alpine
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"]