diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,4 +1,9 @@ FROM docker.io/sysrepo/sysrepo-netopeer2:latest + +RUN apt-get update && apt-get install -y python3 python3-pip + +RUN mkdir /logs + COPY ./models /resources/models COPY ./scripts ./scripts COPY ./src/python/netconf_server ./application/netconf_server @@ -6,12 +11,11 @@ COPY ./src/python/netconf_server_application.py ./application/netconf_server_app COPY ./src/python/requirements.txt ./application/requirements.txt COPY ./src/python/setup.py ./application/setup.py -RUN apt-get update && apt-get install -y python3 python3-pip && pip3 install -e ./application/ - -ENV ENABLE_TLS=false +RUN pip3 install -e ./application/ RUN mkdir -p /resources/certs && \ ./scripts/generate-certificates.sh /resources/certs -RUN mkdir /logs + +ENV ENABLE_TLS=false ENTRYPOINT ["./scripts/set-up-netopeer.sh", "/resources/models", "/resources/certs"] |