update dockerfile
Marco Andronaco andronacomarco@gmail.com
Sun, 26 May 2024 15:57:24 +0200
2 files changed,
7 insertions(+),
9 deletions(-)
M
Dockerfile
→
Dockerfile
@@ -5,14 +5,13 @@
WORKDIR /build # Download Go modules -COPY ./telegram-bot-api ./telegram-bot-api -COPY go.mod go.su[m] ./ +RUN apk update && \ + apk add --no-cache \ + git + +COPY . . +RUN git submodule update --init --recursive RUN go mod download - -# Transfer source code - - -COPY *.go ./ # Build RUN CGO_ENABLED=0 go build -trimpath -o /dist/app