39 lines
2.3 KiB
Docker
39 lines
2.3 KiB
Docker
FROM bitnami/minideb:stretch
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
|
|
HOME="/" \
|
|
PATH="/opt/bitnami/tensorflow-resnet/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 /bitnami-user.sh && \
|
|
/install-nami.sh
|
|
RUN bitnami-pkg unpack tensorflow-resnet-2.1.0-0 --checksum 51d4f2e7c54e86a17a25b3e915775d226d918689413164331d216b7183b53416
|
|
RUN apt-get update && apt-get upgrade && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN curl --silent -L https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 > /usr/local/bin/gosu && \
|
|
echo 0b843df6d86e270c5b0f5cbd3c326a04e18f4b7f9b8457fa497b0454c4b138d7 /usr/local/bin/gosu | sha256sum --check && \
|
|
chmod u+x /usr/local/bin/gosu && \
|
|
mkdir -p /opt/bitnami/licenses && \
|
|
curl --silent -L https://raw.githubusercontent.com/tianon/gosu/master/LICENSE > /opt/bitnami/licenses/gosu-1.11.txt
|
|
RUN for server in "ha.pool.sks-keyservers.net" "hkp://p80.pool.sks-keyservers.net:80" "keyserver.ubuntu.com" "hkp://keyserver.ubuntu.com:80" "pgp.mit.edu"; do gpg --keyserver $server --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; done && \
|
|
gpg --fingerprint 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 | grep -q "6380 DC42 8747 F6C3 93FE ACA5 9A84 159D 7001 A4E5" && \
|
|
curl --silent -L https://github.com/krallin/tini/releases/download/v0.13.2/tini.asc > /tmp/tini.asc && \
|
|
curl --silent -L https://github.com/krallin/tini/releases/download/v0.13.2/tini > /usr/local/bin/tini && \
|
|
gpg --verify /tmp/tini.asc /usr/local/bin/tini && \
|
|
chmod +x /usr/local/bin/tini && \
|
|
mkdir -p /opt/bitnami/licenses && \
|
|
curl --silent -L https://raw.githubusercontent.com/krallin/tini/master/LICENSE > /opt/bitnami/licenses/tini-0.13.2.txt
|
|
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-resnet" \
|
|
BITNAMI_IMAGE_VERSION="2.1.0-debian-9-r0" \
|
|
NAMI_PREFIX="/.nami"
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/app-entrypoint.sh" ]
|
|
CMD [ "tail", "-f", "/dev/null" ]
|