# The thing the attendee is trying to get Ready.
#
# Deliberately trivial: a static server on :8000 with /healthz. Its only job is
# to come up cleanly once the three planted bugs are fixed, so the attendee's
# success signal is unambiguous.
FROM alpine:3.20

RUN apk add --no-cache busybox-extras \
    && mkdir -p /srv/www \
    && printf 'ok\n' > /srv/www/healthz \
    && printf '<h1>wallet</h1><p>up and Ready.</p>\n' > /srv/www/index.html

EXPOSE 8000
# -f foreground, -p port, -h docroot. busybox httpd serves /healthz as a file,
# which is all the readinessProbe needs.
CMD ["httpd", "-f", "-p", "8000", "-h", "/srv/www"]
