更新 Dockerfile

This commit is contained in:
Cherry Sakura 2023-10-27 03:31:16 +00:00
parent ad4cb8271f
commit 436d2762f0

View File

@ -1,4 +1,5 @@
FROM debian:12 FROM debian:12-slim
RUN echo '#!/bin/bash\nphp artisan "$@"' > /usr/bin/art && \ RUN echo '#!/bin/bash\nphp artisan "$@"' > /usr/bin/art && \
@ -9,7 +10,7 @@ RUN echo '#!/bin/bash\nphp artisan "$@"' > /usr/bin/art && \
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
rm -rf /etc/apt/sources.list.d/debian.sources && \ rm -rf /etc/apt/sources.list.d/debian.sources && \
apt update && \ apt update && \
apt install -y --no-install-recommends wget lsb-release unzip && \ apt install -y --no-install-recommends wget lsb-release unzip ca-certificates && \
wget --no-check-certificate -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \ wget --no-check-certificate -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' && \ sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' && \
apt update && \ apt update && \