udp Dockerfile: pass on docker cli arguments to tracker

This commit is contained in:
Joakim Frostegård 2022-07-24 12:01:46 +02:00
parent 414af5a26f
commit 55646d33b9

View file

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