mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-31 02:58:44 -04:00
docker: cache go compiler
This commit is contained in:
parent
759c626e0f
commit
152978045c
5 changed files with 6 additions and 6 deletions
|
@ -23,7 +23,7 @@ RUN rm -rf ./hack/
|
|||
|
||||
# Build the access_manager
|
||||
WORKDIR /constellation/access_manager/
|
||||
RUN CGO_ENABLED=0 go build -o /constellation/build/access_manager -ldflags "-s -w" .
|
||||
RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 go build -o /constellation/build/access_manager -ldflags "-s -w" .
|
||||
|
||||
# Copy the access_manager from build into a scratch container, which is eventually deployed into the cluster
|
||||
FROM scratch as release
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue