removes ursula extra from docker file; relayer docker file for faster build speed

pull/3475/head
KPrasch 2024-02-16 15:32:38 +01:00 committed by derekpierre
parent f1b6611ec0
commit 822e3047cf
No known key found for this signature in database
1 changed files with 9 additions and 2 deletions

View File

@ -3,10 +3,17 @@ FROM nucypher/rust-python:3.12.0
# set default user
USER $USER
# set default in-container workdir
WORKDIR /code
# Layer 1: Install dependencies
COPY requirements.txt /code
RUN pip3 install --no-cache-dir -r requirements.txt
# Layer 2: Install nucypher entrypoint
COPY . /code
RUN pip3 install . --no-deps
RUN pip3 install .[ursula]
# Layer 3: Set environment variables
RUN export PATH="$HOME/.local/bin:$PATH"
CMD ["/bin/bash"]