Skip to content

Commit f4f5d71

Browse files
committed
fix: make dev docker builds possible with reva replace
1 parent 90b29ea commit f4f5d71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

opencloud/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dev-docker-multiarch:
2828
docker buildx rm opencloudbuilder || true
2929
docker buildx create --platform linux/arm64,linux/amd64 --name opencloudbuilder
3030
docker buildx use opencloudbuilder
31-
cd .. && docker buildx build --platform linux/arm64,linux/amd64 --output type=docker --file opencloud/docker/Dockerfile.multiarch --tag opencloudeu/opencloud:dev-multiarch .
31+
docker buildx build --platform linux/arm64,linux/amd64 --output type=docker --file docker/Dockerfile.multiarch --tag opencloudeu/opencloud:dev-multiarch ../..
3232
docker buildx rm opencloudbuilder
3333

3434
.PHONY: debug-docker

opencloud/docker/Dockerfile.multiarch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ ARG STRING
77
RUN apk add bash make git curl gcc musl-dev libc-dev binutils-gold inotify-tools vips-dev
88

99
WORKDIR /opencloud
10-
RUN --mount=type=bind,target=/opencloud \
10+
RUN --mount=type=bind,target=/opencloud,rw\
1111
--mount=type=cache,target=/go/pkg/mod \
1212
--mount=type=cache,target=/root/.cache \
1313
GOOS="${TARGETOS:-linux}" GOARCH="${TARGETARCH:-amd64}" ; \
14-
make -C opencloud release-linux-docker-${TARGETARCH} ENABLE_VIPS=true DIST=/dist
14+
cd opencloud && make -C opencloud release-linux-docker-${TARGETARCH} ENABLE_VIPS=true DIST=/dist
1515

1616
FROM alpine:3.21
1717
ARG VERSION

0 commit comments

Comments
 (0)