allow usage of userid
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-10-23 20:43:29 +02:00
parent d342c01149
commit 42f377f497
2 changed files with 23 additions and 3 deletions

View File

@@ -2,8 +2,10 @@ FROM python:3.7
VOLUME ["/in", "/out"]
RUN python -m pip install inotify
RUN python -m pip install inotify \
&& adduser mayan --disabled-password --disabled-login --no-create-home --gecos ""
COPY script.py /
COPY --chown mayan:mayan script.py /
COPY entrypoint.sh /
CMD ["python", "-u", "/script.py"]
CMD ["/entrypoint.sh"]