mirror of
https://github.com/bitnami/containers.git
synced 2026-03-11 16:07:50 +08:00
34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
FROM oraclelinux:7-slim
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
|
|
HOME="/" \
|
|
PATH="/opt/bitnami/tensorflow-serving/bin:/opt/bitnami/tensorflow-serving/bazel-bin/tensorflow_serving/model_servers:/opt/bitnami/nami/bin:$PATH"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl glibc gzip hostname libaio-devel libgcc libstdc++ procps-ng sudo tar which
|
|
RUN /build/bitnami-user.sh && \
|
|
/build/install-nami.sh
|
|
RUN bitnami-pkg unpack tensorflow-serving-2.1.0-0 --checksum 8b83500719420b7aa0f6935ab1efb95f4d1cd904a5dd28cbfb8823c70a69ce1b
|
|
RUN yum upgrade -y && \
|
|
rm -r /var/cache/yum
|
|
RUN /build/install-gosu.sh
|
|
RUN /build/install-tini.sh
|
|
|
|
COPY rootfs /
|
|
ENV BITNAMI_APP_NAME="tensorflow-serving" \
|
|
BITNAMI_IMAGE_VERSION="2.1.0-ol-7-r3" \
|
|
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" ]
|