28 lines
1.4 KiB
Docker
28 lines
1.4 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"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libbz2-1.0 libc6 libffi6 libgcc1 libgomp1 liblzma5 libncursesw6 libreadline7 libsqlite3-0 libssl1.1 libstdc++6 libtinfo6 procps tar zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "python" "3.7.12-5" --checksum 3a43049bde8f33c72c7d56b94416df67ab7ab129944c624d60b2d59b9e602854
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "pytorch" "1.10.0-0" --checksum 321bf9fb769196a274698fd7ee9c07cbfdb157179f6cb86ce25f91520b992802
|
|
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/pytorch/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="pytorch" \
|
|
BITNAMI_IMAGE_VERSION="1.10.0-debian-10-r31" \
|
|
LD_LIBRARY_PATH="/opt/bitnami/python/lib/python3.7/site-packages/torch/lib/:/opt/bitnami/python/lib/python3.7/site-packages/PIL/.libs/:$LD_LIBRARY_PATH" \
|
|
PATH="/opt/bitnami/python/bin:/opt/bitnami/common/bin:$PATH"
|
|
|
|
WORKDIR /app
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/pytorch/entrypoint.sh" ]
|
|
CMD [ "python" ]
|