mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-01-07 14:09:21 +01:00
docker
This commit is contained in:
parent
315dce530b
commit
039e4c0fd7
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
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"]
|
Loading…
Reference in New Issue
Block a user