Device-Type-Library-Import/Dockerfile
2021-11-25 01:22:36 -05:00

17 lines
394 B
Docker

FROM python:3.9-alpine
ENV REPO_URL=https://github.com/netbox-community/devicetype-library.git
WORKDIR /app
COPY requirements.txt .
# Install dependencies
RUN apk add --no-cache git ca-certificates && \
python3 -m pip install --upgrade pip && \
pip3 install -r requirements.txt
# Copy over src code
COPY *.py ./
# -u to avoid stdout buffering
CMD ["python3","-u","nb-dt-import.py"]