mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2024-12-28 04:51:44 +00:00
fix permission
This commit is contained in:
parent
dfb147943a
commit
c496fc4aae
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user