c o n ttt ain rri zzee
This commit is contained in:
parent
56ffe567a8
commit
4196258cc4
18
Containerfile
Normal file
18
Containerfile
Normal file
@ -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" ]
|
Loading…
Reference in New Issue
Block a user