35 lines
1.6 KiB
Docker
35 lines
1.6 KiB
Docker
FROM docker.io/bitnami/minideb:buster
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
|
|
HOME="/" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/tensorflow-serving/bin:/opt/bitnami/tensorflow-serving/bazel-bin/tensorflow_serving/model_servers:/opt/bitnami/common/bin:/opt/bitnami/nami/bin:$PATH"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl dirmngr gnupg libc6 libgcc1 libstdc++6 procps sudo unzip
|
|
RUN /build/bitnami-user.sh
|
|
RUN /build/install-nami.sh
|
|
RUN bitnami-pkg install tini-0.18.0-3 --checksum 1e9b72b6636c6a48397a18df2363b44461e87ad7f892c179a9115c7525ed9327
|
|
RUN bitnami-pkg unpack tensorflow-serving-2.1.0-1 --checksum 855d095d1d66a3e73c5e9ced0119fe799df3bef18f2896a9f3c311dee8dc3adf
|
|
RUN bitnami-pkg install gosu-1.12.0-0 --checksum 582d501eeb6b338a24f417fededbf14295903d6be55c52d66c52e616c81bcd8c
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN echo "deb http://http.us.debian.org/debian testing main non-free contrib" >> /etc/apt/sources.list && apt update && apt remove gcc-6 -y && install_packages gcc-7 libstdc++6
|
|
|
|
COPY rootfs /
|
|
ENV BITNAMI_APP_NAME="tensorflow-serving" \
|
|
BITNAMI_IMAGE_VERSION="2.1.0-debian-10-r73" \
|
|
NAMI_PREFIX="/.nami" \
|
|
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 [ "/app-entrypoint.sh" ]
|
|
CMD [ "/run.sh" ]
|