Dockerfile

This commit is contained in:
Meutel 2019-07-02 20:16:13 +02:00
parent 95aab372a5
commit f1363dce5d

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM golang as builder
WORKDIR /go/src/meutel.net/meutel/go-bouquins
COPY . .
RUN go get .
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o app .
# deployment image
FROM debian:stable-slim
LABEL author="Meutel"
WORKDIR /root/
COPY --from=builder /go/src/meutel.net/meutel/go-bouquins/app .
COPY templates/ ./templates/
COPY assets/ ./assets/
CMD [ "./app" ]
EXPOSE 8080