diff --git a/.docker/tier1/Dockerfile b/.docker/tier1/Dockerfile index 2c5f9f29d..5888df82d 100644 --- a/.docker/tier1/Dockerfile +++ b/.docker/tier1/Dockerfile @@ -4,7 +4,7 @@ ARG TAG=master RUN mkdir /judge /problems && cd /judge && \ curl -L https://github.com/DMOJ/judge-server/archive/"${TAG}".tar.gz | tar -xz --strip-components=1 && \ pip3 install -e . && \ - . ~judge/.profile && \ + HOME=~judge . ~judge/.profile && \ runuser -u judge -w PATH -- dmoj-autoconf -V > /judge-runtime-paths.yml && \ echo ' crt_x86_in_lib32: true' >> /judge-runtime-paths.yml diff --git a/.docker/tier2/Dockerfile b/.docker/tier2/Dockerfile index 665eab79f..2c2b3ac82 100644 --- a/.docker/tier2/Dockerfile +++ b/.docker/tier2/Dockerfile @@ -4,8 +4,7 @@ ARG TAG=master RUN mkdir /judge /problems && cd /judge && \ curl -L https://github.com/DMOJ/judge-server/archive/"${TAG}".tar.gz | tar -xz --strip-components=1 && \ pip3 install -e . && \ - sed -i 's/source "$HOME/. "\/home\/judge/' ~judge/.profile && \ - . ~judge/.profile && \ + HOME=~judge . ~judge/.profile && \ runuser -u judge -w PATH -- dmoj-autoconf -V > /judge-runtime-paths.yml && \ echo ' crt_x86_in_lib32: true' >> /judge-runtime-paths.yml diff --git a/.docker/tier3/Dockerfile b/.docker/tier3/Dockerfile index 23672b659..c547174e1 100644 --- a/.docker/tier3/Dockerfile +++ b/.docker/tier3/Dockerfile @@ -4,8 +4,7 @@ ARG TAG=master RUN mkdir /judge /problems && cd /judge && \ curl -L https://github.com/DMOJ/judge-server/archive/"${TAG}".tar.gz | tar -xz --strip-components=1 && \ pip3 install -e . && \ - sed -i 's/source "$HOME/. "\/home\/judge/' ~judge/.profile && \ - . ~judge/.profile && \ + HOME=~judge . ~judge/.profile && \ runuser -u judge -w PATH -- dmoj-autoconf -V > /judge-runtime-paths.yml && \ echo ' crt_x86_in_lib32: true' >> /judge-runtime-paths.yml