mirror of
https://github.com/orbien-org/orbien.git
synced 2026-09-22 00:01:31 +00:00
21 lines
621 B
Docker
21 lines
621 B
Docker
FROM alpine:3.21 AS pick
|
|
|
|
ARG TARGETPLATFORM
|
|
COPY docker_context /tmp/artifacts
|
|
WORKDIR /tmp/output
|
|
RUN set -eux; \
|
|
case "$TARGETPLATFORM" in \
|
|
linux/amd64) ARCH=amd64 ;; \
|
|
linux/arm64) ARCH=arm64 ;; \
|
|
*) echo "Unsupported architecture: $TARGETPLATFORM"; exit 1 ;; \
|
|
esac; \
|
|
cp "/tmp/artifacts/orbien-linux-${ARCH}/orbien" .
|
|
|
|
FROM alpine:3.21
|
|
|
|
RUN apk add --no-cache ca-certificates tini
|
|
COPY --from=pick --chmod=755 /tmp/output/orbien /usr/local/bin/orbien
|
|
COPY docker/conf/orbien.toml /etc/orbien/orbien.toml
|
|
ENTRYPOINT ["/sbin/tini", "--", "orbien"]
|
|
CMD ["-c", "/etc/orbien/orbien.toml"]
|