mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 04:32:15 +01:00
improving speed of the command make image
This commit is contained in:
@@ -16,11 +16,15 @@ ENV GOOS=linux \
|
|||||||
# Define our workding outside of $GOPATH (we're using go modules).
|
# Define our workding outside of $GOPATH (we're using go modules).
|
||||||
WORKDIR /gotenberg/package
|
WORKDIR /gotenberg/package
|
||||||
|
|
||||||
|
# Install module dependencies.
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
|
||||||
|
RUN go mod download &&\
|
||||||
|
go mod verify
|
||||||
|
|
||||||
# Copy our source code.
|
# Copy our source code.
|
||||||
COPY internal ./internal
|
COPY internal ./internal
|
||||||
COPY cmd ./cmd
|
COPY cmd ./cmd
|
||||||
COPY go.sum go.sum
|
|
||||||
COPY go.mod go.mod
|
|
||||||
|
|
||||||
# Build our binary.
|
# Build our binary.
|
||||||
RUN go build -o gotenberg -ldflags "-X main.version=${VERSION}" cmd/gotenberg/main.go
|
RUN go build -o gotenberg -ldflags "-X main.version=${VERSION}" cmd/gotenberg/main.go
|
||||||
|
|||||||
Reference in New Issue
Block a user