Skip to content

Commit

Permalink
Merge pull request #150 from powerapi-ng/build/container-global-venv
Browse files Browse the repository at this point in the history
build(Dockerfile): Use PowerAPI global virtualenv
  • Loading branch information
gfieni authored Sep 24, 2024
2 parents 6c10325 + 39ed8de commit 400d1ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM docker.io/powerapi/powerapi:2.8.0@sha256:d1a3946c07e21971299fc9ea0d2b8313652d4865f6d3a044e7873716aa96430f

USER powerapi
COPY --chown=powerapi . /tmp/smartwatts
RUN pip install --user --no-cache-dir "/tmp/smartwatts" && rm -r /tmp/smartwatts
RUN pip install --no-cache-dir "/tmp/smartwatts" && rm -r /tmp/smartwatts

USER powerapi
ENTRYPOINT ["python3", "-m", "smartwatts"]

0 comments on commit 400d1ce

Please sign in to comment.