Skip to content

Commit

Permalink
add basic quota
Browse files Browse the repository at this point in the history
  • Loading branch information
zsarge committed Mar 25, 2024
1 parent 42ab9eb commit 8ad3e59
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

# run docker containers inside this docker container.
# therefore, each client is isolated from each other
CMD ["/app/gotty", "-w", "/usr/local/bin/docker", "run", "-it", "--rm", "busybox"]
CMD ["/app/gotty", "-w", "/usr/local/bin/docker", "run", "-m", "15M", "--cpu-quota", "5000", "-it", "--rm", "busybox"]

EXPOSE 8080

1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.8"
services:
webshell-challenges:
build:
Expand Down

0 comments on commit 8ad3e59

Please sign in to comment.