We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cee791 commit 1cb4771Copy full SHA for 1cb4771
debian/Dockerfile
@@ -1,8 +1,10 @@
1
FROM golang:1.24.2 AS go
2
3
+ARG BINARY_NAME="arduino-app-cli"
4
+
5
COPY . /app
6
WORKDIR /app
-RUN GOOS=linux go build -o orchestrator ./cmd/arduino-app-cli/
7
+RUN GOOS=linux go build -o ${BINARY_NAME} ./cmd/arduino-app-cli/
8
9
FROM debian:bookworm AS debian
10
@@ -12,7 +14,7 @@ ARG REVISION="1"
12
14
RUN apt-get update && apt-get install -y sed
13
15
16
COPY ./debian/orchestrator /orchestrator/
-COPY --from=go /app/orchestrator /orchestrator/usr/bin/orchestrator
17
+COPY --from=go /app/${BINARY_NAME} /orchestrator/usr/bin/${BINARY_NAME}
18
19
RUN sed -i "s/ARCH/$(dpkg --print-architecture)/" /orchestrator/DEBIAN/control && \
20
dpkg-deb --build --root-owner-group /orchestrator &&\
0 commit comments