Copy only the files needed to run Netbox

Exclude contrib, docs, scripts, etc.
This commit is contained in:
Tobias Genannt 2021-05-11 19:20:27 +02:00
parent 05bb40adb1
commit 0ffbdcc59f
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ WORKDIR /opt
COPY --from=builder /opt/netbox/venv /opt/netbox/venv COPY --from=builder /opt/netbox/venv /opt/netbox/venv
ARG NETBOX_PATH ARG NETBOX_PATH
COPY ${NETBOX_PATH} /opt/netbox COPY ${NETBOX_PATH}/netbox/ /opt/netbox/netbox/
COPY docker/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py COPY docker/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
COPY docker/docker-entrypoint.sh /opt/netbox/docker-entrypoint.sh COPY docker/docker-entrypoint.sh /opt/netbox/docker-entrypoint.sh