factoriotools / factorio-docker

Factorio headless server in a Docker container
https://hub.docker.com/r/factoriotools/factorio/
MIT License
888 stars 218 forks source link

`envsubst` not found #489

Closed RedstoneParadox closed 1 month ago

RedstoneParadox commented 3 months ago

envsubst is not in the image despite the description saying otherwise. It appears that the line apk add --update --no-cache pwgen su-exec binutils gettext libintl && \ was removed from the dockerfile at some point.

rondie commented 3 months ago

my workaround for now is to add envsubst (via package gettext-base) in the entrypoint entrypoint: /bin/sh -c "apt update && apt -y install gettext-base && mkdir -p /factorio/config && envsubst < /server-settings.json > /factorio/config/server-settings.json && exec /docker-entrypoint.sh"