Files
netbox-sync/Dockerfile
ricardo.bartels@telekom.de d954bddae3 fixes docker image build
2021-10-28 08:39:45 +02:00

16 lines
439 B
Docker

FROM python:3.9-slim-bullseye
# Install dependencies
RUN apt-get update && apt-get -y 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"]