Skip to content

Commit

Permalink
[Docker] Add workdir (#382)
Browse files Browse the repository at this point in the history
Dockerfile now explicitely changes to `/opt/cineast` as working directory, by x4e-jonas <[email protected]>
  • Loading branch information
x4e-jonas committed Jun 12, 2023
1 parent a86d8b7 commit f7b704c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f7b704c

Please sign in to comment.