Sample Docker Compose project with an entry point in setup.py
-
Given that
wfhscript is declared inconsole_scriptsin setup.py:... setup( ... entry_points={ 'console_scripts': ['wfh=wfh.command_line:main'] } ) -
setup.py could be installed during building the Docker image:
... RUN python setup.py develop ... -
This command could be used then in docker-compose.yml:
version: '3' services: app: build: . command: wfh