forked from chirpstack/chirpstack-device-profiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 688 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (16 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copy binary stage
FROM --platform=$BUILDPLATFORM alpine:3.22.1 AS binary
ARG TARGETPLATFORM
COPY interface/target/x86_64-unknown-linux-musl/release/chirpstack-device-profiles-interface /usr/bin/chirpstack-device-profiles-interface-x86_64
RUN case "$TARGETPLATFORM" in \
"linux/amd64") \
cp /usr/bin/chirpstack-device-profiles-interface-x86_64 /usr/bin/chirpstack-device-profiles-interface; \
;; \
esac;
# Final stage
FROM alpine:3.22.1
RUN apk --no-cache add \
ca-certificates
COPY --from=binary /usr/bin/chirpstack-device-profiles-interface /usr/bin/chirpstack-device-profiles-interface
USER nobody:nogroup
ENTRYPOINT ["/usr/bin/chirpstack-device-profiles-interface"]