summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorDaniel Salzman <daniel.salzman@nic.cz>2023-01-20 19:01:10 +0100
committerDaniel Salzman <daniel.salzman@nic.cz>2023-01-20 19:01:10 +0100
commitf4a0f9e4e7d981028ef523bb351df77da82b69eb (patch)
treecfa76a351ca575c27ec864b29d0ff6e220b66b7b /Dockerfile
parentDockerfile: fix building on Bookworm (diff)
downloadknot-f4a0f9e4e7d981028ef523bb351df77da82b69eb.tar.xz
knot-f4a0f9e4e7d981028ef523bb351df77da82b69eb.zip
Dockerfile: fix building using buildx
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 5d048eb7a..0e2c256dc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -79,7 +79,13 @@ RUN apt-get update && \
install -o knot -g knot -d /config /rundir /storage
# Copy artifacts
-COPY --from=builder /tmp/knot-install/ /
+# `COPY --from=builder /tmp/knot-install/ /` doesn't work with DOCKER_BUILDKIT=1 under buildx
+COPY --from=builder /tmp/knot-install/bin/ /bin/
+COPY --from=builder /tmp/knot-install/config/ /config/
+COPY --from=builder /tmp/knot-install/include/ /include/
+COPY --from=builder /tmp/knot-install/lib/ /lib/
+COPY --from=builder /tmp/knot-install/sbin/ /sbin/
+COPY --from=builder /tmp/knot-install/share/ /share/
# Expose port
EXPOSE 53/UDP