From fe90ade27a0a9239a5de09efc4e6bb0109875a7c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 15 Mar 2022 14:32:34 +0300 Subject: docker: best practices Since I don't spawn any processes, I can just use the exec form in the Dockerfile, and it's all fine. --- Dockerfile | 2 +- docker-compose.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 80d45fb..4470ffc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,4 @@ RUN mkdir -p /var/lib/void COPY [".", "/usr/src/"] WORKDIR /usr/src -CMD ./server.py --void /var/lib/void/void.state +CMD ["./server.py", "--void", "/var/lib/void/void.state"] diff --git a/docker-compose.yml b/docker-compose.yml index 4c03864..2cd37fa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,6 @@ services: void: build: context: . - init: true logging: driver: journald ports: -- cgit v1.2.3