Skip to content

Commit

Permalink
change containerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleader committed Dec 20, 2023
1 parent 52d1a95 commit 2834fa4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ RUN python -m poetry install --without dev --no-root \
&& python -m poetry export -f requirements.txt --output requirements.txt --without-hashes

COPY ${package}/ /app/${package}
COPY tests /app/${package}/tests
COPY tests /app/tests

ENV PYTHONPATH /app/${package}
WORKDIR /app/${package}
WORKDIR /app/

# Run tests and return coverage analysis
RUN python -m coverage run tests/test_${package}.py \
Expand All @@ -38,9 +38,9 @@ COPY ${package}/ /app/${package}
# Install all plugin dependencies from the generated requirements.txt file
RUN python -m pip install -r requirements.txt

WORKDIR /app/${package}
WORKDIR /app

ENTRYPOINT ["python", "template_python_plugin.py"]
ENTRYPOINT ["python", "-m", "arcaflow_plugin_template_python"]
CMD []

LABEL org.opencontainers.image.source="https://github.com/arcalot/arcaflow-plugin-template-python"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_arcaflow_plugin_template_python.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
import unittest
import template_python_plugin
import arcaflow_plugin_template_python.template_python_plugin as template_python_plugin
from arcaflow_plugin_sdk import plugin


Expand Down

0 comments on commit 2834fa4

Please sign in to comment.