Skip to content

Commit 22f9053

Browse files
committed
Fix buildx problem
Error: buildx failed with: ERROR: failed to build: failed to solve: variable expansion is not supported for --from, define a new stage with FROM using ARG from global scope as a workaround
1 parent 954a6af commit 22f9053

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apache_assets/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ARG WB_IMAGE=ghcr.io/mardi4nfdi/wikibase-production:latest
22
ARG APACHE_IMAGE=ghcr.io/mardi4nfdi/apache:latest
33

4+
FROM ${WB_IMAGE} AS wb_stage
45
FROM ${APACHE_IMAGE}
5-
COPY --from=${WB_IMAGE} /var/www/html/w /var/www/html/w
6+
COPY --from=w /var/www/html/w /var/www/html/w

0 commit comments

Comments
 (0)