Optimize psycopg2 dependency
We have beeing installing psycopg2 for a while now. This updates to the latest version. Because psycopg2-binary is a direct dependency of Netbox both versions were installled. Now we remove the pre-compiled version from the dependency file.
This commit is contained in:
parent
22cb2d5812
commit
6d465e6f81
2 changed files with 3 additions and 2 deletions
|
@ -31,7 +31,8 @@ RUN export DEBIAN_FRONTEND=noninteractive \
|
|||
|
||||
ARG NETBOX_PATH
|
||||
COPY ${NETBOX_PATH}/requirements.txt requirements-container.txt /
|
||||
RUN /opt/netbox/venv/bin/pip install \
|
||||
RUN sed -i -e '/psycopg2-binary/d' requirements.txt && \
|
||||
/opt/netbox/venv/bin/pip install \
|
||||
-r /requirements.txt \
|
||||
-r /requirements-container.txt
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue