mirror of https://github.com/nucypher/nucypher.git
removes ursula extra from docker file; relayer docker file for faster build speed
parent
f1b6611ec0
commit
822e3047cf
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue