From f7b704c858fcfae55d3b3783a88c9e63469425f9 Mon Sep 17 00:00:00 2001 From: x4e-jonas <83283569+x4e-jonas@users.noreply.github.com> Date: Mon, 12 Jun 2023 08:30:31 +0000 Subject: [PATCH] [Docker] Add workdir (#382) Dockerfile now explicitely changes to `/opt/cineast` as working directory, by x4e-jonas --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6b527ca67..ffcdbf60d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,12 +25,14 @@ COPY --from=build \ /cineast-src/resources \ /opt/cineast/resources +WORKDIR /opt/cineast + RUN printf '#!/bin/bash\n\ if [ "$1" != "api" ] && [ "$1" != "cli" ]; then\n\ echo "Usage: $0 api|cli" >&2\n\ exit 1\n\ fi\n\ -cd /opt/cineast/ && java -jar cineast-$1.jar ${@:2}'\ +java -jar "cineast-$1.jar" "${@:2}"'\ > /opt/cineast/bootstrap.sh RUN chmod +x /opt/cineast/bootstrap.sh