ws dockerfile: pass docker arguments to tracker

This commit is contained in:
Joakim Frostegård 2022-07-24 12:12:44 +02:00
parent 55646d33b9
commit cdd9569fd9

View file

@ -44,10 +44,10 @@ COPY --from=builder /usr/src/aquatic/target/release/aquatic_ws ./
# Create entry point script for setting config and access
# list file contents at runtime
COPY <<-"EOT" ./entrypoint.sh
#!/bin/sh
echo "$CONFIG_FILE_CONTENTS" > ./config.toml
echo "$ACCESS_LIST_CONTENTS" > ./access-list.txt
exec ./aquatic_ws -P -c ./config.toml
#!/bin/bash
echo -e "$CONFIG_FILE_CONTENTS" > ./config.toml
echo -e "$ACCESS_LIST_CONTENTS" > ./access-list.txt
exec ./aquatic_ws -c ./config.toml "$@"
EOT
RUN chmod +x ./entrypoint.sh