1
1
ARG ARCH=
2
- FROM "${ARCH}ubuntu:jammy "
2
+ FROM "${ARCH}ubuntu:noble "
3
3
LABEL maintainer=
"DOMjudge team <[email protected] >"
4
4
5
5
ENV DEBIAN_FRONTEND=noninteractive \
@@ -14,7 +14,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
14
14
FPM_MAX_CHILDREN=40 \
15
15
DJ_SKIP_MAKE=0 \
16
16
DJ_DB_INSTALL_BARE=0 \
17
- PHPSUPPORTED="8.0 8. 1 8.2 8.3" \
17
+ PHPSUPPORTED="8.1 8.2 8.3" \
18
18
DEFAULTPHPVERSION="8.3" \
19
19
APTINSTALL="apt install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold"
20
20
@@ -23,9 +23,9 @@ RUN apt update \
23
23
&& apt install --no-install-recommends --no-install-suggests -y \
24
24
dumb-init autoconf automake git acl \
25
25
gcc g++ make zip unzip mariadb-client \
26
- nginx php8.1 php8.1 -cli php8.1 -fpm php8.1 -zip \
27
- php8.1 -gd php8.1 -curl php8.1 -mysql php8.1 -intl \
28
- php8.1 -gmp php8.1 -xml php8.1 -mbstring php8.1 -xdebug php8.1 -pcov \
26
+ nginx php8.3 php8.3 -cli php8.3 -fpm php8.3 -zip \
27
+ php8.3 -gd php8.3 -curl php8.3 -mysql php8.3 -intl \
28
+ php8.3 -gmp php8.3 -xml php8.3 -mbstring php8.3 -xdebug php8.3 -pcov \
29
29
bsdmainutils ntp lsof \
30
30
linuxdoc-tools linuxdoc-tools-text groff \
31
31
python3-sphinx python3-sphinx-rtd-theme python3-pip fontconfig python3-yaml \
@@ -44,6 +44,8 @@ RUN ln -sf /dev/stdout /var/log/nginx/access.log \
44
44
&& ln -sf /dev/stderr /var/log/nginx/error.log \
45
45
&& mkdir -p /run/php
46
46
47
+ # Remove default ubuntu user
48
+ RUN userdel ubuntu && groupdel ubuntu || true
47
49
# Set up users
48
50
RUN groupadd -g $GID domjudge \
49
51
&& useradd -u $UID -g $GID -m domjudge \
@@ -60,15 +62,15 @@ RUN apt update && \
60
62
# Install all supported PHP versions
61
63
RUN add-apt-repository ppa:ondrej/php -y && apt update
62
64
RUN for VERSION in $PHPSUPPORTED; do \
63
- if [ "${VERSION}" != "8.1 " ]; then \
65
+ if [ "${VERSION}" != "8.3 " ]; then \
64
66
$APTINSTALL php${VERSION}; \
65
67
fi; \
66
68
done
67
69
RUN PACKAGES=$(dpkg-query -f '${binary:Package}\n ' -W|grep "^php.*-" ); \
68
70
for PACKAGE in $PACKAGES; do \
69
71
PACKAGEALLVERSIONS="" && \
70
72
for VERSION in $PHPSUPPORTED; do \
71
- if [ "${VERSION}" != "8.1 " ]; then \
73
+ if [ "${VERSION}" != "8.3 " ]; then \
72
74
PACKAGEALLVERSIONS="$PACKAGEALLVERSIONS php${VERSION}-${PACKAGE#php*-}" ; \
73
75
fi; \
74
76
done; \
0 commit comments