Add Dockerfile for wpn github project

This commit is contained in:
Adrien Reslinger 2018-08-30 08:46:18 +02:00
parent f6b4f67137
commit d4fdaeb17c

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM golang:1.10-alpine as builder
RUN apk add -U --no-cache git build-base sqlite-dev ca-certificates
RUN go get github.com/theSuess/wpn
WORKDIR /go/src/github.com/theSuess/wpn
RUN CGO_ENABLED=0 GOOS=linux go build -v -o wpn .
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/bin/wpn /usr/bin/
#EXPOSE 8000 9000 80 443
ENTRYPOINT ["wpn"]