mirror of
https://github.com/cmehay/pyentrypoint
synced 2024-10-30 15:21:11 +00:00
23 lines
452 B
Plaintext
23 lines
452 B
Plaintext
|
# Testing with python 3.10
|
||
|
|
||
|
FROM python:3.10
|
||
|
|
||
|
ENV POETRY_VIRTUALENVS_CREATE=false
|
||
|
|
||
|
RUN pip install poetry
|
||
|
|
||
|
RUN adduser --uid 1009 --system testuser
|
||
|
RUN addgroup --gid 1010 testgroup
|
||
|
|
||
|
ENV PYTHONPATH /opt/
|
||
|
|
||
|
COPY tests/test_template.yml.tpl /tmp/test_template.yml
|
||
|
COPY 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", "."]
|