I want to make an external config file via volume and pass it like:
docker run MyImage -v /home/path/my_config.conf:folder2/
(is that right btw?)
But have no idea how to link this volume to the argument for the main.py
...
My DocekrFile
:
FROM python:3.6-jessie
MAINTAINER Vladislav Ladenkov
WORKDIR folder1/folder2
COPY folder2/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY folder2/*.py ./
?? how to link volume ??
ENTRYPOINT ["python3", "main.py", "@??volume??"]