mirror of
https://github.com/bb-Ricardo/netbox-sync.git
synced 2026-01-20 07:50:16 -06:00
16 lines
436 B
Docker
16 lines
436 B
Docker
FROM python:3.9-slim-bullseye
|
|
|
|
# Install dependencies
|
|
RUN apt-get update && apt-get upgrade && apt-get install -y git-core
|
|
|
|
# Prepare the application
|
|
COPY . /opt
|
|
RUN cd /opt && \
|
|
pip3 install --upgrade pip setuptools && \
|
|
pip3 install -r requirements.txt && \
|
|
pip3 install --upgrade git+https://github.com/vmware/vsphere-automation-sdk-python.git
|
|
|
|
# Run the application
|
|
WORKDIR /opt
|
|
ENTRYPOINT ["python3", "netbox-sync.py"]
|