@@ -2,6 +2,11 @@ FROM ubuntu:24.04
2
2
ENV DEBIAN_FRONTEND=noninteractive
3
3
ENV PHPSUPPORTED="7.4 8.0 8.1 8.2"
4
4
ENV APTINSTALL="apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold"
5
+ RUN useradd -m domjudge
6
+ RUN useradd -d /nonexistent -g nogroup -s /bin/false domjudge-run-0
7
+ RUN useradd -d /nonexistent -g nogroup -s /bin/false domjudge-run-1
8
+ RUN groupadd domjudge-run
9
+
5
10
RUN apt-get update && apt-get install -y \
6
11
acl make zip unzip apache2-utils bsdmainutils libcurl4-gnutls-dev \
7
12
libjsoncpp-dev libmagic-dev autoconf automake bats sudo debootstrap procps \
@@ -25,9 +30,10 @@ RUN apt-get update && apt-get install -y \
25
30
&& rm -rf /var/lib/apt/lists/*
26
31
27
32
# Install needed NPM packages and download chrome for the domjudge user
28
- RUN su domjudge -c "npm install pa11y puppeteer && \
33
+ RUN su domjudge -c "cd /home/domjudge && \
34
+ npm install pa11y puppeteer && \
29
35
npx puppeteer browsers install chrome && \
30
- npm cache clean"
36
+ npm cache clean --force "
31
37
32
38
# Install needed global PHP modules
33
39
RUN composer -n require justinrainbow/json-schema
@@ -46,11 +52,6 @@ RUN add-apt-repository ppa:ondrej/php -y && apt-get update && \
46
52
# Put the gitlab user in sudo
47
53
RUN echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
48
54
49
- RUN useradd -m domjudge
50
- RUN useradd -d /nonexistent -g nogroup -s /bin/false domjudge-run-0
51
- RUN useradd -d /nonexistent -g nogroup -s /bin/false domjudge-run-1
52
- RUN groupadd domjudge-run
53
-
54
55
# Update dictionary to latest version
55
56
ENV GITHUBDICTIONARY="https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary.txt"
56
57
ENV CODESPELLDICTLOCATION="/usr/lib/python3/dist-packages/codespell_lib/data/dictionary.txt"
0 commit comments