2
0
mirror of https://github.com/cmehay/pyentrypoint synced 2024-10-30 15:21:11 +00:00
pyentrypoint/Dockerfile-test.py3.7

24 lines
449 B
Groff
Raw Permalink Normal View History

# Testing with python 3.7
2016-12-05 22:30:52 +00:00
FROM python:3.7
ENV POETRY_VIRTUALENVS_CREATE=false
2016-12-05 22:30:52 +00:00
RUN pip install poetry
2016-12-05 22:30:52 +00:00
RUN adduser --uid 1009 --system testuser
RUN addgroup --gid 1010 testgroup
ENV PYTHONPATH /opt/
ADD tests/test_template.yml.tpl /tmp/test_template.yml
ADD tests/test_template.yml.tpl /tmp/test_template2.yml.tpl
COPY pyproject.toml poetry.lock /opt/
RUN cd /opt && poetry install
2016-12-05 22:30:52 +00:00
WORKDIR /opt/tests
CMD ["pytest", "--verbose", "-rw", "."]