Optimize pip install command
As mentioned by @sdktr the "--install-option" is redundant. The added "--no-warn-script-location" is used to silence warnings when installing into a directory that is not on $PATH.
This commit is contained in:
parent
f7b526eacd
commit
f9662a1e4b
|
@ -16,7 +16,7 @@ RUN apk add --no-cache \
|
|||
|
||||
WORKDIR /install
|
||||
|
||||
RUN pip install --prefix="/install" --install-option="--prefix=/install" \
|
||||
RUN pip install --prefix="/install" --no-warn-script-location \
|
||||
# gunicorn is used for launching netbox
|
||||
gunicorn \
|
||||
greenlet \
|
||||
|
@ -30,7 +30,7 @@ RUN pip install --prefix="/install" --install-option="--prefix=/install" \
|
|||
|
||||
ARG NETBOX_PATH
|
||||
COPY ${NETBOX_PATH}/requirements.txt /
|
||||
RUN pip install --prefix="/install" --install-option="--prefix=/install" -r /requirements.txt
|
||||
RUN pip install --prefix="/install" --no-warn-script-location -r /requirements.txt
|
||||
|
||||
###
|
||||
# Main stage
|
||||
|
|
Loading…
Reference in New Issue