mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 03:01:48 +00:00
Copy root .go files to the builder image in the Dockerfile.
This fixes the image build error where, after having changed the build command to use the root of the repo instead of ./src, the Go toolchain is unable to find any .go files to build.
This commit is contained in:
@@ -21,6 +21,7 @@ RUN apk --no-cache add git
|
||||
WORKDIR /build
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY *.go ./
|
||||
COPY src/ ./src/
|
||||
RUN go build -ldflags "-s -w" -o git-pages .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user