make deployment container-ready

This commit is contained in:
jlehmann committed 2022-07-02 10:46:42 +02:00
1 parent ee28065d0f
commit 6d7b0871ad
3 files changed
+21 -2

No files matched your search

+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