Browse Source

fix build docker

pull/7185/head
chrislu 1 month ago
parent
commit
ed57d08909
  1. 3
      docker/Makefile

3
docker/Makefile

@ -20,9 +20,10 @@ build: binary
docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local . docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local .
build_e2e: binary_race build_e2e: binary_race
DOCKER_BUILDKIT=1 docker build \
docker buildx build \
--cache-from=type=local,src=/tmp/.buildx-cache \ --cache-from=type=local,src=/tmp/.buildx-cache \
--cache-to=type=local,dest=/tmp/.buildx-cache-new,mode=max \ --cache-to=type=local,dest=/tmp/.buildx-cache-new,mode=max \
--load \
-t chrislusf/seaweedfs:e2e \ -t chrislusf/seaweedfs:e2e \
-f Dockerfile.e2e . -f Dockerfile.e2e .
# Move cache to avoid growing cache size # Move cache to avoid growing cache size

Loading…
Cancel
Save