diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-01-27 19:16:00 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-01-27 19:16:00 +0000 |
commit | 531e98e8cca6fef22b048d7c0621e5f85abd040f (patch) | |
tree | 1811dbee7bfcccd2bba503a3c354c63f60574921 /Dockerfile | |
parent | Initial commit (diff) | |
download | milla-531e98e8cca6fef22b048d7c0621e5f85abd040f.tar.gz milla-531e98e8cca6fef22b048d7c0621e5f85abd040f.zip |
first commit
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..416a270 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM alpine:3.19 as builder +RUN apk update && apk upgrade && \ + apk add go git +WORKDIR /milla +COPY go.sum go.mod /milla/ +RUN go mod download +COPY *.go /milla/ +RUN go build + +FROM alpine:3.19 +COPY --from=builder /milla/milla /milla/ +ENTRYPOINT ["/milla/milla"] |