Merge pull request #426 from netbox-community/FixBuild
Dependencies to build 'cryptography' Python package
This commit is contained in:
commit
3a0b3fe133
14
Dockerfile
14
Dockerfile
@ -4,23 +4,31 @@ FROM ${FROM} as builder
|
|||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
build-base \
|
build-base \
|
||||||
|
cargo \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
cyrus-sasl-dev \
|
cyrus-sasl-dev \
|
||||||
graphviz \
|
graphviz \
|
||||||
jpeg-dev \
|
jpeg-dev \
|
||||||
libevent-dev \
|
libevent-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
|
libressl-dev \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
|
musl-dev \
|
||||||
openldap-dev \
|
openldap-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
&& python3 -m venv /opt/netbox/venv \
|
&& python3 -m venv /opt/netbox/venv \
|
||||||
&& /opt/netbox/venv/bin/python3 -m pip install --upgrade pip setuptools
|
&& /opt/netbox/venv/bin/python3 -m pip install --upgrade \
|
||||||
|
pip \
|
||||||
|
setuptools \
|
||||||
|
wheel
|
||||||
|
|
||||||
ARG NETBOX_PATH
|
ARG NETBOX_PATH
|
||||||
COPY ${NETBOX_PATH}/requirements.txt requirements-container.txt /
|
COPY ${NETBOX_PATH}/requirements.txt requirements-container.txt /
|
||||||
RUN /opt/netbox/venv/bin/pip install -r /requirements.txt -r /requirements-container.txt
|
RUN /opt/netbox/venv/bin/pip install \
|
||||||
|
-r /requirements.txt \
|
||||||
|
-r /requirements-container.txt
|
||||||
|
|
||||||
###
|
###
|
||||||
# Main stage
|
# Main stage
|
||||||
|
Loading…
Reference in New Issue
Block a user