From 4196258cc4d81a1c0d2a30a0cfa0ed7708ac1552 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Tue, 12 Sep 2023 00:28:15 +0300 Subject: [PATCH] c o n ttt ain rri zzee --- Containerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..19fef8a --- /dev/null +++ b/Containerfile @@ -0,0 +1,18 @@ +FROM golang:1.19.13-alpine3.18 AS builder + +WORKDIR /build + +COPY ./ /build + +RUN sed -i 's/1.21.0/1.21/g' /build/go.mod +RUN go mod edit -go=1.19 + +RUN go build -o viddl . + +FROM alpine:3.18 + +COPY --from=builder /build/viddl /app/viddl + +RUN chmod +x /app/viddl + +CMD [ "/app/viddl" ]