From 3bc095c112973087e86aaefc267b0b233e41fe7e Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 3 Apr 2021 14:52:35 -0700 Subject: [PATCH 1/1] project creation --- Dockerfile | 3 +++ Makefile | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Dockerfile create mode 100644 Makefile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..31d55c5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM debian:latest + +ENTRYPOINT bash diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d0f616a --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +IMAGE_NAME=seeder +CONTAINER_NAME=seeder-test +build: + docker build -t $(IMAGE_NAME) . + +run: build + docker run -d \ + -p "8080:8080" \ + --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \ + --name $(CONTAINER_NAME) \ + $(IMAGE_NAME) + +start: build + -docker run -it --rm \ + --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \ + -p "8080:8080" \ + $(IMAGE_NAME) + +stop: + docker stop $(CONTAINER_NAME) + docker rm $(CONTAINER_NAME) + -- 2.39.5