Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions hub-server/deployments/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ FROM alpine:3.21

# Single RUN to minimise layers: upgrade base packages, install
# runtime deps (ca-certificates for TLS, tzdata for timezones,
# wget for HEALTHCHECK), configure nsswitch, create non-root user.
# wget for HEALTHCHECK, tini as init process (reaps zombie children
# that Docker healthcheck injects into the PID namespace), configure
# nsswitch, create non-root user.
RUN apk upgrade --no-cache \
&& apk add --no-cache ca-certificates tzdata wget \
&& apk add --no-cache ca-certificates tzdata wget tini \
&& echo "hosts: files dns" > /etc/nsswitch.conf \
&& adduser -D -h /app agenthub

Expand All @@ -65,5 +67,5 @@ EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD wget -qO- http://localhost:8080/health || exit 1

ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/docker-entrypoint.sh"]
CMD ["./server-hub"]
Loading