Move dockerfile

This commit is contained in:
dave 2019-02-11 12:06:36 -08:00
parent 97941aa529
commit 01efeed44f
2 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,6 @@ COPY ./requirements.txt /requirements.txt
RUN pip3 install -r /requirements.txt
COPY ./ /tmp/pyircbot
RUN cd /tmp/pyircbot && \
python3 setup.py install
@ -19,3 +18,4 @@ ENTRYPOINT ["/usr/local/bin/pyircbot"]
WORKDIR /srv/bot/
CMD ["-c", "config.json"]
USER bot

View File

@ -3,4 +3,7 @@
export PYTHONUNBUFFERED=1
export PYTHONPATH=.
find pyircbot tests -name '*.pyc' -delete
find pyircbot tests -name __pycache__ -exec rm -rf {} \;
py.test --cov=pyircbot --cov-report html -n 4 tests/ $@