mirror of
https://github.com/bitnami/containers.git
synced 2026-03-07 01:07:20 +08:00
30 lines
1.5 KiB
Docker
30 lines
1.5 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.13-0" --checksum 6c902f37fc75d4ac4e92a62e2f5c3e813c07faf4f4aeabf61691e5bfeeeffe2e
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "pytorch" "1.10.2-5" --checksum 19e920158423b370bcdd9354f682f0095f90fedb2802cf54aef65144f8a6d458
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-7" --checksum d6280b6f647a62bf6edc74dc8e526bfff63ddd8067dcb8540843f47203d9ccf1
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
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.2-debian-10-r41" \
|
|
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" ]
|