From 32f89b0ddb8af0800505c323ae7d36c5419795d4 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Tue, 24 Jan 2023 07:26:20 -0800 Subject: [PATCH] Create `/dev/null` in the container (#114) This is needed to run libinteractive problems. --- docker/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8d3f378..13078f0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -28,8 +28,10 @@ COPY --from=builder /opt/nodejs/lib/node_modules/ /opt/nodejs/lib/node_modules/ RUN rm -rf /var/lib/omegajail COPY --from=builder /var/lib/omegajail/ /var/lib/omegajail/ COPY --from=builder /usr/share/java/libinteractive.jar /usr/share/java/libinteractive.jar -RUN mkdir -p /etc/omegaup/runner /var/lib/omegaup -RUN chmod 777 /var/lib/omegaup +RUN mkdir -p /etc/omegaup/runner /var/lib/omegaup && \ + chmod 777 /var/lib/omegaup && \ + mkdir -p /var/lib/omegajail/root/dev && \ + mknod --mode=666 /var/lib/omegajail/root/dev/null c 1 3 COPY bin/omegaup-runner /usr/bin/omegaup-runner COPY config.json /etc/omegaup/runner/config.json