15 lines
374 B
Docker
15 lines
374 B
Docker
|
# build stage
|
||
|
FROM golang:1.10.2-alpine3.7 AS build-env
|
||
|
RUN apk --no-cache add git
|
||
|
RUN go get p83.nl/go/wiki/...
|
||
|
|
||
|
# final stage
|
||
|
FROM alpine
|
||
|
RUN apk --no-cache add ca-certificates git
|
||
|
EXPOSE 80
|
||
|
COPY --from=build-env /go/bin/wiki /app/
|
||
|
RUN ["mkdir", "/app/templates"]
|
||
|
COPY --from=build-env /go/src/p83.nl/go/wiki/templates /app/templates
|
||
|
WORKDIR /app
|
||
|
ENTRYPOINT ["/app/wiki"]
|