Dockerfile
This commit is contained in:
parent
95aab372a5
commit
f1363dce5d
23
Dockerfile
Normal file
23
Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user