Skip to content

Commit 1cb4771

Browse files
authored
feat: add provisioning board command
1 parent 0cee791 commit 1cb4771

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

debian/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM golang:1.24.2 AS go
22

3+
ARG BINARY_NAME="arduino-app-cli"
4+
35
COPY . /app
46
WORKDIR /app
5-
RUN GOOS=linux go build -o orchestrator ./cmd/arduino-app-cli/
7+
RUN GOOS=linux go build -o ${BINARY_NAME} ./cmd/arduino-app-cli/
68

79
FROM debian:bookworm AS debian
810

@@ -12,7 +14,7 @@ ARG REVISION="1"
1214
RUN apt-get update && apt-get install -y sed
1315

1416
COPY ./debian/orchestrator /orchestrator/
15-
COPY --from=go /app/orchestrator /orchestrator/usr/bin/orchestrator
17+
COPY --from=go /app/${BINARY_NAME} /orchestrator/usr/bin/${BINARY_NAME}
1618

1719
RUN sed -i "s/ARCH/$(dpkg --print-architecture)/" /orchestrator/DEBIAN/control && \
1820
dpkg-deb --build --root-owner-group /orchestrator &&\

0 commit comments

Comments
 (0)