Device-Type-Library-Import/Dockerfile

17 lines
394 B
Docker
Raw Normal View History

2021-05-16 14:46:38 +02:00
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
2021-05-16 14:46:38 +02:00
COPY *.py ./
# -u to avoid stdout buffering
CMD ["python3","-u","nb-dt-import.py"]