ekster/Dockerfile.alpine

17 lines
448 B
Docker
Raw Normal View History

2018-05-16 18:10:23 +00:00
# build stage
2019-08-06 22:07:45 +00:00
FROM golang:1.12.0-alpine3.7 AS build-env
2018-05-16 18:10:23 +00:00
RUN apk --no-cache add git
2019-08-06 22:07:45 +00:00
ENV CGO_ENABLED=0
RUN go get p83.nl/go/ekster/...
2018-05-16 18:10:23 +00:00
# final stage
2019-08-06 22:07:45 +00:00
FROM alpine:3.7
2018-05-16 18:10:23 +00:00
RUN apk --no-cache add ca-certificates
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-07-09 19:59:26 +00:00
RUN ["mkdir", "/app/templates"]
COPY --from=build-env /go/src/p83.nl/go/ekster/templates /app/templates
ENTRYPOINT ["/app/eksterd"]