You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pyentrypoint/Dockerfile-test.py3.7

24 lines
449 B
Groff

# Testing with python 3.7
FROM python:3.7
ENV POETRY_VIRTUALENVS_CREATE=false
RUN pip install poetry
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
WORKDIR /opt/tests
CMD ["pytest", "--verbose", "-rw", "."]