Skip to content

Commit ca6d1c9

Browse files
authored
Docker image fixes (#31)
* Don't create the PyPi cache in the docker image Creating the PyPi cache in a docker image only increase the image size and is useless, so disable it. * Add build args to allow selecting the base docker image Add build args to allow selecting the base docker image without having to edit the Dockerfile. This is especially usefull for automated builds were editing files is not an option.
1 parent 4c9cfc7 commit ca6d1c9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
FROM netboxcommunity/netbox:latest-ldap
1+
ARG FROM_IMAGE=netboxcommunity/netbox
2+
ARG FROM_TAG=latest-ldap
3+
ARG FROM=${FROM_IMAGE}:${FROM_TAG}
4+
FROM ${FROM}
25

36
COPY ./nextbox_ui_plugin /source/nextbox-ui-plugin/nextbox_ui_plugin/
47
COPY ./setup.py /source/nextbox-ui-plugin/
58
COPY ./MANIFEST.in /source/nextbox-ui-plugin/
69
COPY ./README.md /source/nextbox-ui-plugin/
7-
RUN pip3 install nextbox-ui-plugin
10+
RUN pip3 install --no-cache-dir nextbox-ui-plugin

0 commit comments

Comments
 (0)