From 270fc7c1b6b622cade2b37e21becaff4f06f938c Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Fri, 18 Nov 2022 15:26:02 -0300 Subject: [PATCH] Allow to run container without mounting /config --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ffb0aca7..1053d593 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,11 +31,14 @@ COPY www www COPY main.go . RUN CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath +RUN mkdir -p /config # Collect all files FROM scratch AS rootfs COPY --from=build /workspace/go2rtc /usr/local/bin/ +# Ensure an empty /config folder exists so that the container can be run without a volume +COPY --from=build /config /config COPY --from=ngrok /bin/ngrok /usr/local/bin/ COPY ./docker/run.sh /run.sh