Skip to content

Commit

Permalink
Update Java from 17 to 21
Browse files Browse the repository at this point in the history
  • Loading branch information
rien committed Feb 12, 2024
1 parent 984ca89 commit 6f223f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dodona-java17.dockerfile → dodona-java21.dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM openjdk:17-slim
FROM eclipse-temurin:21-jdk-alpine

# Install jq for json querying in bash
RUN apt-get update && apt-get install -y --no-install-recommends jq=1.6-2.1 \
&& rm -rf /var/lib/apt/lists/* \
RUN apk add --update-cache jq \
# Make sure the students can't find our secret path, which is mounted in
# /mnt with a secure random name.
&& chmod 711 /mnt \
# Add the user which will run the student's code and the judge.
&& useradd -m runner
&& adduser -S runner \
&& rm -rf /var/cache/apk/*

# As the runner user
USER runner
Expand Down

0 comments on commit 6f223f3

Please sign in to comment.