Downgrade nix-channels to bullseye, remove php-related dependencies in base image

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Shengqi Chen 2023-12-02 16:22:01 +08:00
parent c7a7fedfe8
commit 818c0330fb
No known key found for this signature in database
GPG Key ID: 6EE389C0F18AF774
2 changed files with 8 additions and 3 deletions

View File

@ -2,7 +2,12 @@ FROM debian:buster
LABEL maintainer="Miao Wang <miao.wang@tuna.tsinghua.edu.cn>" LABEL maintainer="Miao Wang <miao.wang@tuna.tsinghua.edu.cn>"
RUN apt-get update && \ RUN apt-get update && \
apt-get install --no-install-recommends -y wget curl rsync lftp git jq python3-dev python3-pip yum-utils createrepo aria2 ack composer php-curl php-zip libnss-unknown xz-utils patch unzip openssh-client debmirror apt-get install --no-install-recommends -y \
wget curl rsync lftp git jq python3-dev python3-pip \
yum-utils createrepo debmirror \
libnss-unknown xz-utils patch unzip \
aria2 ack openssh-client
# composer php-curl php-zip
RUN if [ "$(uname -m)" != "x86_64" -a "$(uname -m)" != "i386" ]; then \ RUN if [ "$(uname -m)" != "x86_64" -a "$(uname -m)" != "i386" ]; then \
apt-get install --no-install-recommends -y libxml2-dev libxslt1-dev zlib1g-dev libssl-dev libffi-dev ;\ apt-get install --no-install-recommends -y libxml2-dev libxslt1-dev zlib1g-dev libssl-dev libffi-dev ;\

View File

@ -1,5 +1,5 @@
FROM debian:bookworm FROM debian:bullseye
LABEL maintainer="WANG Ruikang <dramforever@live.com>" LABEL maintainer="Wang Ruikang <dramforever@live.com>"
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y python3-dev python3-pip curl apt-get install -y python3-dev python3-pip curl