dont switch users in dockerfile, use runuser instead
This commit is contained in:
parent
548e69d3f3
commit
fce8babb89
|
@ -16,5 +16,4 @@ RUN echo 'runner hard nproc 16' >> /etc/security/limits.conf
|
|||
RUN echo 'runner soft nofile 128' >> /etc/security/limits.conf
|
||||
RUN echo 'runner hard nofile 128' >> /etc/security/limits.conf
|
||||
|
||||
USER runner
|
||||
WORKDIR /tmp
|
||||
|
|
|
@ -62,6 +62,6 @@ docker run \
|
|||
-v $dir/executors/cpp:/executor_cpp:ro \
|
||||
-v $dir/executors/go:/executor_go:ro \
|
||||
piston \
|
||||
/$bin /$file $file 2>&1
|
||||
runuser -l runner -c '/$bin /$file $file 2>&1'
|
||||
|
||||
rm -f /tmp/$file
|
||||
|
|
Loading…
Reference in New Issue