1- # PHP 8.1.27
2- # FROM php:8.1
3- FROM php@sha256:9b5dfb7deef3e48d67b2599e4d3967bb3ece19fd5ba09cb8e7ee10f5facf36e0
4- MAINTAINER Martin Zurowietz <martin@cebitec. uni-bielefeld.de>
5- LABEL org.opencontainers.image.source https://github.com/biigle/core
1+ # PHP 8.2.21
2+ # FROM php:8.2
3+ FROM php@sha256:a61daae986bdf9bbeff9a514e3598a4f72bb2e3d01a0b3d0eff960bbfe85acdf
4+ LABEL org.opencontainers.image.authors= " Martin Zurowietz <m.zurowietz@ uni-bielefeld.de>"
5+ LABEL org.opencontainers.image.source= " https://github.com/biigle/core"
66
77RUN LC_ALL=C.UTF-8 apt-get update \
88 && apt-get install -y --no-install-recommends \
@@ -14,22 +14,27 @@ RUN LC_ALL=C.UTF-8 apt-get update \
1414 python3-sklearn \
1515 python3-matplotlib \
1616 python3-shapely \
17+ python3-pandas \
1718 && apt-get -y autoremove \
1819 && apt-get clean \
1920 && rm -r /var/lib/apt/lists/*
2021
2122RUN ln -s "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
22- ADD ".docker/all-php.ini" "$PHP_INI_DIR/conf.d/all.ini"
23+ # Enable FFI for jcupitt/vips.
24+ # See: https://github.com/libvips/php-vips?tab=readme-ov-file#install
25+ RUN echo "ffi.enable = true" > "$PHP_INI_DIR/conf.d/vips.ini"
2326
2427RUN LC_ALL=C.UTF-8 apt-get update \
2528 && apt-get install -y --no-install-recommends \
2629 libxml2-dev \
2730 libzip-dev \
2831 libpq-dev \
32+ libffi-dev \
2933 && apt-get install -y --no-install-recommends \
3034 libxml2 \
3135 libzip4 \
3236 postgresql-client \
37+ libffi8 \
3338 && docker-php-ext-configure pgsql -with-pgsql=/usr/bin/pgsql \
3439 && docker-php-ext-install -j$(nproc) \
3540 exif \
@@ -39,50 +44,29 @@ RUN LC_ALL=C.UTF-8 apt-get update \
3944 pgsql \
4045 soap \
4146 zip \
47+ ffi \
4248 && apt-get purge -y \
4349 libxml2-dev \
4450 libzip-dev \
4551 libpq-dev \
52+ libffi-dev \
4653 && apt-get -y autoremove \
4754 && apt-get clean \
4855 && rm -r /var/lib/apt/lists/*
4956
5057# Configure proxy if there is any. See: https://stackoverflow.com/a/2266500/1796523
5158RUN [ -z "$HTTP_PROXY" ] || pear config-set http_proxy $HTTP_PROXY
5259
53- RUN LC_ALL=C.UTF-8 apt-get update \
54- && apt-get install -y --no-install-recommends \
55- libyaml-dev \
56- && apt-get install -y --no-install-recommends \
57- libyaml-0-2 \
58- && pecl install yaml \
59- && printf "\n " | docker-php-ext-enable yaml \
60- && apt-get purge -y \
61- libyaml-dev \
62- && apt-get -y autoremove \
63- && apt-get clean \
64- && rm -r /var/lib/apt/lists/*
65-
66- ARG PHPREDIS_VERSION=5.3.7
60+ ARG PHPREDIS_VERSION=6.0.2
6761RUN curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/${PHPREDIS_VERSION}.tar.gz \
6862 && tar -xzf /tmp/redis.tar.gz \
6963 && rm /tmp/redis.tar.gz \
7064 && mkdir -p /usr/src/php/ext \
7165 && mv phpredis-${PHPREDIS_VERSION} /usr/src/php/ext/redis \
7266 && docker-php-ext-install -j$(nproc) redis
7367
74- # ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}"
75-
7668RUN LC_ALL=C.UTF-8 apt-get update \
77- && apt-get install -y --no-install-recommends \
78- libvips-dev \
79- && apt-get install -y --no-install-recommends \
80- libvips42 \
81- && pecl install vips \
82- && docker-php-ext-enable vips \
83- && apt-get purge -y \
84- libvips-dev \
85- && apt-get -y autoremove \
69+ && apt-get install -y --no-install-recommends libvips42 \
8670 && apt-get clean \
8771 && rm -r /var/lib/apt/lists/*
8872
@@ -96,8 +80,8 @@ RUN LC_ALL=C.UTF-8 apt-get update \
9680 PyExcelerate==0.6.7 \
9781 Pillow==10.2.0 \
9882 && pip3 install --no-cache-dir --break-system-packages --index-url https://download.pytorch.org/whl/cpu \
99- torch==2.1 .* \
100- torchvision==0.16 .* \
83+ torch==2.2 .* \
84+ torchvision==0.17 .* \
10185 && apt-get purge -y \
10286 python3-pip \
10387 && apt-get -y autoremove \
0 commit comments