Use Agent for native, container, systemd and OpenWrt installations and signed updates. Remove retired Probe deployment templates and smoke scripts.
20 lines
854 B
Docker
20 lines
854 B
Docker
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-alpine
|
|
|
|
ARG APP_VERSION=unknown
|
|
LABEL org.opencontainers.image.title="MoShiro Agent" \
|
|
org.opencontainers.image.description="MoShiro node for Linux: listens and dials (MOSHIRO_MODE=agent) or only dials (MOSHIRO_MODE=dial)" \
|
|
org.opencontainers.image.licenses="Apache-2.0" \
|
|
org.opencontainers.image.version="$APP_VERSION"
|
|
|
|
COPY --chown=1654:1654 app/moshiro-agent /usr/local/bin/moshiro-agent
|
|
COPY --chown=1654:1654 app/lib*.so.* /usr/local/bin/
|
|
COPY --chown=1654:1654 app/fleet-enroll /usr/local/bin/fleet-enroll
|
|
COPY --chown=1654:1654 config/ /etc/moshiro/
|
|
COPY --chown=1654:1654 --chmod=0755 entrypoint.sh /usr/local/bin/moshiro-entrypoint
|
|
|
|
ENV LD_LIBRARY_PATH=/usr/local/bin
|
|
USER 1654:1654
|
|
WORKDIR /etc/moshiro
|
|
VOLUME ["/etc/moshiro"]
|
|
ENTRYPOINT ["/usr/local/bin/moshiro-entrypoint"]
|