constrain go, add user home dir
This commit is contained in:
parent
c75b073b74
commit
af5a4f7cee
|
@ -9,7 +9,7 @@ RUN apt-get -y install ruby
|
|||
RUN apt-get -y install nodejs
|
||||
RUN apt-get -y install golang
|
||||
|
||||
RUN useradd -g root runner
|
||||
RUN useradd -m runner
|
||||
|
||||
RUN echo '@runner soft nproc 16' >> /etc/security/limits.conf
|
||||
RUN echo '@runner hard nproc 16' >> /etc/security/limits.conf
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
go run $1
|
||||
file=$1
|
||||
|
||||
go build $file
|
||||
|
||||
file=${file%%.*}
|
||||
|
||||
timeout -s HUP 2 ./$file
|
||||
|
|
Loading…
Reference in New Issue