Skip to content
Open
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
9 changes: 8 additions & 1 deletion src/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN apt-get update && \
python3 python3-venv python3-pip python3-dev \
git cmake ccache make gcc g++ \
libgsl-dev libboost-dev libltdl-dev \
libopenmpi-dev pkg-config wget nano \
libopenmpi-dev pkg-config curl wget nano \
libhdf5-dev swig pandoc \
libtool \
&& rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -74,5 +74,12 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
COPY test-nest.sh /opt/test-nest.sh
RUN chmod +x /opt/test-nest.sh

# Health check: curl the endpoint every 30 seconds
# -f flag fails silently on HTTP errors (4xx, 5xx)
# exit 1 signals failure to Docker if curl fails
ENV HEALTHCHECK_PORT=52425
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:${HEALTHCHECK_PORT} || exit 1

EXPOSE 8080 52425 52426 54286
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]