Add Dockerfile.ek
This commit is contained in:
parent
c3d8fb2802
commit
e596a116bb
13
Dockerfile.ek
Normal file
13
Dockerfile.ek
Normal file
|
@ -0,0 +1,13 @@
|
|||
# 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/ek
|
||||
|
||||
# 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/ek /app/
|
||||
ENTRYPOINT ["/app/ek"]
|
Loading…
Reference in New Issue
Block a user