Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@ RUN python3.9 -m pip install poetry \
&& python3.9 -m poetry install --without dev \
&& python3.9 -m poetry export -f requirements.txt --output requirements.txt --without-hashes

ENV package arcaflow_plugin_template_python

# run tests
COPY example_plugin.py /app/
COPY test_example_plugin.py /app/
COPY ${package}/ /app/${package}
COPY tests /app/tests

RUN mkdir /htmlcov
RUN pip3 install coverage
RUN python3 -m coverage run test_example_plugin.py
RUN python3 -m coverage run tests/test_example_plugin.py
RUN python3 -m coverage html -d /htmlcov --omit=/usr/local/*


# final image
FROM quay.io/centos/centos:stream8

ENV package arcaflow_plugin_template_python
RUN dnf -y module install python39 && dnf -y install python39 python39-pip

WORKDIR /app
Expand All @@ -34,11 +36,13 @@ COPY --from=poetry /app/requirements.txt /app/
COPY --from=poetry /htmlcov /htmlcov/
COPY LICENSE /app/
COPY README.md /app/
COPY example_plugin.py /app/
COPY ${package}/ /app/${package}

RUN python3.9 -m pip install -r requirements.txt

ENTRYPOINT ["python3", "/app/example_plugin.py"]
WORKDIR /app/${package}

ENTRYPOINT ["python3", "example_plugin.py"]
CMD []

LABEL org.opencontainers.image.source="https://github.com/arcalot/arcaflow-plugin-template-python"
Expand Down
File renamed without changes.
Loading