FROM alpine
RUN apk --update add openssl
COPY target/x86_64-unknown-linux-musl/release/web-service-count-axum /opt/web-service-count-axum
WORKDIR /opt
CMD ["/opt/web-service-count-axum"]
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8080/ || exit 1
LABEL org.opencontainers.image.authors="Joel Parker Henderson <joel@joelparkerhenderson.com>"
LABEL org.opencontainers.image.description="Web service count axum example"
LABEL org.opencontainers.image.documentation="https://github.com/joelparkrhenderson/web-service-count-axum"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.source="https://github.com/joelparkrhenderson/web-service-count-axum"
LABEL org.opencontainers.image.title="web-service-count-axum"
LABEL org.opencontainers.image.url="https://github.com/joelparkrhenderson/web-service-count-axum"
LABEL org.opencontainers.image.version="1.4.0"