update cart
This commit is contained in:
+10
-5
@@ -38,12 +38,17 @@ ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
ENV CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH}
|
||||
|
||||
# Dependency caching
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
# Sibling module sources, supplied as BuildKit named contexts (see
|
||||
# deploy/docker-compose.yml additional_contexts + deploy/k8s/build-push.sh
|
||||
# --build-context). They are resolved locally via the go.work written below,
|
||||
# because the renamed git.k6n.net/mats/* modules are not yet published.
|
||||
COPY --from=slaskfinder . ./slask-finder
|
||||
COPY --from=redisinventory . ./go-redis-inventory
|
||||
|
||||
# Copy full source (relay on .dockerignore to prune)
|
||||
COPY . .
|
||||
# This module's source (relay on .dockerignore to prune).
|
||||
COPY . ./go-cart-actor
|
||||
RUN printf 'go 1.26.2\n\nuse (\n\t.\n\t../slask-finder\n\t../go-redis-inventory\n)\n' > ./go-cart-actor/go.work
|
||||
WORKDIR /src/go-cart-actor
|
||||
|
||||
# (Optional) If you do NOT check in generated protobuf code, uncomment generation:
|
||||
# RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
|
||||
|
||||
Reference in New Issue
Block a user