Separate stage for downloading go deps
This commit is contained in:
parent
3265564835
commit
62e77b5be7
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ WORKDIR /build
|
|||
# COPY --from=client /build/dist /runner/public
|
||||
COPY --from=client /build/dist /build/static
|
||||
|
||||
# Get the dependencies
|
||||
RUN go mod download
|
||||
|
||||
# RUN go build -o server
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o server
|
||||
|
||||
|
|
Loading…
Reference in a new issue