make deployment container-ready

This commit is contained in:
2022-07-02 10:46:42 +02:00
parent ee28065d0f
commit 6d7b0871ad
3 changed files with 21 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM golang:alpine AS builder
WORKDIR /build
ADD go.mod .
COPY . .
RUN go build
FROM alpine
WORKDIR /build
COPY --from=builder /build/wo-bisch-lorahandler /build/wo-bisch-lorahandler
CMD ["./wo-bisch-lorahandler"]
EXPOSE 8080