Device-Type-Library-Import/Dockerfile
2021-05-16 14:46:38 +02:00

13 lines
290 B
Docker

FROM python:3.9-alpine
COPY requirements.txt .
RUN apk add --no-cache git
RUN pip3 install -r requirements.txt
# default
ENV REPO_URL=https://github.com/netbox-community/devicetype-library.git
WORKDIR /app
COPY *.py ./
# -u to avoid stdout buffering
CMD ["python","-u","nb-dt-import.py"]