37 lines
1.7 KiB
Docker
37 lines
1.7 KiB
Docker
FROM docker.io/bitnami/minideb:buster
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-10" \
|
|
OS_NAME="linux" \
|
|
PATH="/opt/bitnami/tensorflow-serving/bin:/opt/bitnami/tensorflow-serving/serving/bazel-bin/tensorflow_serving/model_servers:/opt/bitnami/common/bin:$PATH"
|
|
|
|
ARG JAVA_EXTRA_SECURITY_DIR="/bitnami/java/extra-security"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gcc-7 gzip libc6 libgcc1 libstdc++6 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "tensorflow-serving" "2.7.0-0" --checksum dae4596e825f544ee9696f9bf0130a51426c7579150ba9798ca8b6d2bd6e3d97
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.1-1" --checksum 00722b62c7561929e039877a6e445a4bb782c340890c0a090fdae3c9e1960161
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-0" --checksum 3e6fc37ca073b10a73a804d39c2f0c028947a1a596382a4f8ebe43dfbaa3a25e
|
|
RUN chmod g+rwX /opt/bitnami
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/java/postunpack.sh
|
|
RUN /opt/bitnami/scripts/tensorflow-serving/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="tensorflow-serving" \
|
|
BITNAMI_IMAGE_VERSION="2.7.0-debian-10-r0" \
|
|
JAVA_HOME="/opt/bitnami/java" \
|
|
TENSORFLOW_SERVING_ENABLE_MONITORING="no" \
|
|
TENSORFLOW_SERVING_MODEL_NAME="resnet" \
|
|
TENSORFLOW_SERVING_MONITORING_PATH="/monitoring/prometheus/metrics" \
|
|
TENSORFLOW_SERVING_PORT_NUMBER="8500" \
|
|
TENSORFLOW_SERVING_REST_API_PORT_NUMBER="8501"
|
|
|
|
EXPOSE 8500
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/tensorflow-serving/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/tensorflow-serving/run.sh" ]
|