Skip to content

Commit

Permalink
chore: Fix condition syntax in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sharat87 committed Nov 7, 2024
1 parent 359e395 commit d23f861
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,10 @@ RUN <<END
exit 1
fi

if ! [ -f server/mongo/server.jar && -f server/pg/server.jar ]; then
if ! [ -f server/mongo/server.jar -a -f server/pg/server.jar ]; then
echo "Missing one or both server.jar files in the right place. Are you using the build script?" >&2
exit 1
fi

mkdir -p ./editor ./rts

# Ensure all *.sh scripts are executable.
find . -name node_modules -prune -or -type f -name '*.sh' -print -exec chmod +x '{}' ';'

# Ensure all custom command-scripts have executable permission
chmod +x /opt/bin/*
END

# Add client UI - Application Layer
Expand All @@ -48,6 +40,10 @@ RUN <<END
rm -rf utils/node_modules/resolve/test
cd -

# Ensure all *.sh scripts are executable.
find . -name node_modules -prune -or -type f -name '*.sh' -print -exec chmod +x '{}' ';'

# Ensure all custom command-scripts have executable permission
chmod +x /opt/bin/* *.sh /watchtower-hooks/*.sh

# Disable setuid/setgid bits for the files inside container.
Expand Down

0 comments on commit d23f861

Please sign in to comment.