fix permission

This commit is contained in:
virusdefender 2018-10-14 21:50:20 +08:00
parent dfb147943a
commit c496fc4aae
2 changed files with 2 additions and 6 deletions

View File

@ -10,7 +10,8 @@ RUN buildDeps='software-properties-common git libtool cmake python-dev python3-p
mkdir build && cd build && cmake .. && make && make install && cd ../bindings/Python && python3 setup.py install && \
apt-get purge -y --auto-remove $buildDeps && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
mkdir -p /code
mkdir -p /code && \
useradd -u 12001 compiler && useradd -u 12002 code && useradd -u 12003 spj && usermod -a -G code spj
HEALTHCHECK --interval=5s --retries=3 CMD python3 /code/service.py
ADD server /code

View File

@ -1,9 +1,4 @@
#!/bin/bash
useradd -u 12001 compiler
useradd -u 12002 code
useradd -u 12003 spj
usermod -a -G code spj
rm -rf /judger/*
mkdir -p /judger/run /judger/spj