File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,13 @@ RUN apt-get update && apt-get install -y \
22
22
npm \
23
23
# Code coverage for unit test \
24
24
php-pear php-dev \
25
- # Needed NPM packages \
26
- && npm install -g pa11y puppeteer \
27
25
&& rm -rf /var/lib/apt/lists/*
28
26
27
+ # Install needed NPM packages and download chrome for the domjudge user
28
+ RUN su domjudge -c "npm install pa11y puppeteer && \
29
+ npx puppeteer browsers install chrome && \
30
+ npm cache clean"
31
+
29
32
# Install needed global PHP modules
30
33
RUN composer -n require justinrainbow/json-schema
31
34
@@ -48,9 +51,6 @@ RUN useradd -d /nonexistent -g nogroup -s /bin/false domjudge-run-0
48
51
RUN useradd -d /nonexistent -g nogroup -s /bin/false domjudge-run-1
49
52
RUN groupadd domjudge-run
50
53
51
- # Download chrome for the domjudge user
52
- RUN su domjudge -c "npx puppeteer browsers install chrome"
53
-
54
54
# Update dictionary to latest version
55
55
ENV GITHUBDICTIONARY="https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary.txt"
56
56
ENV CODESPELLDICTLOCATION="/usr/lib/python3/dist-packages/codespell_lib/data/dictionary.txt"
You can’t perform that action at this time.
0 commit comments