constrain go, add user home dir

This commit is contained in:
Brian Seymour 2018-09-21 09:58:01 -05:00
parent c75b073b74
commit af5a4f7cee
2 changed files with 8 additions and 2 deletions

View File

@ -9,7 +9,7 @@ RUN apt-get -y install ruby
RUN apt-get -y install nodejs RUN apt-get -y install nodejs
RUN apt-get -y install golang 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 soft nproc 16' >> /etc/security/limits.conf
RUN echo '@runner hard nproc 16' >> /etc/security/limits.conf RUN echo '@runner hard nproc 16' >> /etc/security/limits.conf

View File

@ -1,3 +1,9 @@
#!/bin/sh #!/bin/sh
go run $1 file=$1
go build $file
file=${file%%.*}
timeout -s HUP 2 ./$file