Updated spn-hub to remove teh portmaster-start dependency.

This commit is contained in:
Natanael Rodriguez Ramos
2025-05-24 17:40:15 +01:00
parent ec749b6be7
commit 2444209834
4 changed files with 23 additions and 26 deletions

View File

@@ -3,18 +3,18 @@ FROM alpine as builder
# Ensure ca-certficates are up to date
# RUN update-ca-certificates
# Download and verify portmaster-start binary.
# Download and verify spn-hub binary.
RUN mkdir /init
RUN wget https://updates.safing.io/linux_amd64/start/portmaster-start_v0-9-6 -O /init/portmaster-start
RUN wget https://updates.safing.io/latest/linux_amd64/hub/spn-hub -O /init/spn-hub
COPY start-checksum.txt /init/start-checksum
RUN cd /init && sha256sum -c /init/start-checksum
RUN chmod 555 /init/portmaster-start
RUN chmod 555 /init/spn-hub
# Use minimal image as base.
FROM alpine
# Copy the static executable.
COPY --from=builder /init/portmaster-start /init/portmaster-start
COPY --from=builder /init/spn-hub /init/spn-hub
# Copy the init script
COPY container-init.sh /init.sh