Skip to content

Commit

Permalink
remove python dependencies that now live elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
TShapinsky committed Jul 26, 2024
1 parent a05e1e3 commit 03853d0
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 697 deletions.
11 changes: 4 additions & 7 deletions alfalfa_worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ USER root
ENV HOME /alfalfa

WORKDIR $HOME
# Need to set the lang to use Python 3.8 with Poetry
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive

# Install poetry
RUN pip3 install poetry==1.8.3
RUN poetry config virtualenvs.options.system-site-packages true \
RUN pip3 install poetry==1.8.3 \
&& poetry config virtualenvs.options.system-site-packages true \
&& poetry config virtualenvs.create false

# Copy and install poetry-based dependencies
Expand All @@ -22,9 +19,9 @@ 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="/alfalfa:${PYTHONPATH}"
ENV PYTHONPATH="${HOME}:${PYTHONPATH}"

COPY ./alfalfa_worker /alfalfa/alfalfa_worker
COPY ./alfalfa_worker ${HOME}/alfalfa_worker

RUN pip3.8 install virtualenv \
&& pip3.8 install -r /alfalfa/alfalfa_worker/energyplus_requirements.txt
Expand Down
Loading

0 comments on commit 03853d0

Please sign in to comment.