Skip to content

Commit 10e7f01

Browse files
committed
...sigh
- Undefined $BINARY_PATH warning. - Missing executables due to copying the wrong directory.
1 parent a0a7344 commit 10e7f01

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

anvil/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# This Dockerfile is for the runtime image only.
22
# It expects that the binaries have already been compiled on the host.
33
# The path to the binaries can be passed in via the BINARY_PATH build argument.
4-
ARG BINARY_PATH=./target/release
5-
64
FROM debian:bookworm-slim
5+
ARG BINARY_PATH=./target/release
76

87
# Install runtime dependencies required by the host-built binaries and tests
98
# - libssl3: OpenSSL 3 (TLS)
@@ -25,8 +24,8 @@ COPY ${BINARY_PATH}/ /tmp/build/
2524
# Find the actual executable files named 'anvil' and 'admin' within the copied tree
2625
# and place them at fixed paths in the runtime image.
2726
RUN set -eux; \
28-
anvil_src=$(find /tmp/build -maxdepth 2 -type f -name anvil -perm -111 | head -n1); \
29-
admin_src=$(find /tmp/build -maxdepth 2 -type f -name admin -perm -111 | head -n1); \
27+
anvil_src=$(find /tmp/build -type f -name anvil -perm -111 | head -n1); \
28+
admin_src=$(find /tmp/build -type f -name admin -perm -111 | head -n1); \
3029
test -n "$anvil_src" && test -n "$admin_src"; \
3130
install -m 0755 "$anvil_src" /usr/local/bin/anvil; \
3231
install -m 0755 "$admin_src" /usr/local/bin/admin; \

0 commit comments

Comments
 (0)