Better way to make ENTRYPOINT / CMD

At this moment:

FROM alpine:3.10
RUN printf '#!/bin/sh\n/usr/bin/nc $(cat /etc/config_nc.conf) | nc app.com 1001\n'> application_starter.sh && \
chmod +x application_starter.sh

ENTRYPOINT ["/application_starter.sh"]

Works but looks unnecessary much.
Important for me is no local files to be copied in the image and to be able to present configs via volumes, not envs.

Better ways to do this?

1 Like