Skip to content

Commit

Permalink
slim down worker image
Browse files Browse the repository at this point in the history
  • Loading branch information
TShapinsky committed Jul 26, 2024
1 parent 03853d0 commit 7c7440a
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 44 deletions.
6 changes: 2 additions & 4 deletions alfalfa_worker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM ghcr.io/nrel/alfalfa-dependencies:multiplatform AS base

USER root

ENV HOME /alfalfa
ENV HOME=/alfalfa

WORKDIR $HOME

Expand All @@ -19,7 +17,7 @@ COPY poetry.lock /alfalfa
RUN poetry install --only main

# Include the path to where alfalfa_worker is so that system calls can find it.
ENV PYTHONPATH="${HOME}:${PYTHONPATH}"
ENV PYTHONPATH="${HOME}:${PYTHONPATH}"

COPY ./alfalfa_worker ${HOME}/alfalfa_worker

Expand Down
94 changes: 55 additions & 39 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ mlep = "0.1.1.dev3"
mongoengine = "~0.25"
pandas = "~1.5"
redis = "~4.5"
scipy = "1.9.3"
# Commenting out scipy as it is installed when installing modelica dependencies
# scipy = "1.9.3"

# The influxdb dependency will be removed once filebeat is configured
influxdb = "^5.3.1"
Expand Down

0 comments on commit 7c7440a

Please sign in to comment.