all repos — albus-go @ f2f3f8a2cb36a51b320c4ab3470cc16a75367941

update dockerfile
Marco Andronaco andronacomarco@gmail.com
Sun, 26 May 2024 15:57:24 +0200
commit

f2f3f8a2cb36a51b320c4ab3470cc16a75367941

parent

1bfa2838c5f0158361bf532c8766cbef2d4efb23

2 files changed, 7 insertions(+), 9 deletions(-)

jump to
M DockerfileDockerfile

@@ -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
M README.mdREADME.md

@@ -4,8 +4,7 @@

## Usage ``` -git submodule init -git submodule update +git submodule update --init --recursive cp .env.example .env ```