From ffedb7e98687f235111f1db570cce77fd8fee94a Mon Sep 17 00:00:00 2001 From: pipeacosta Date: Wed, 2 Oct 2024 13:57:28 +0200 Subject: [PATCH] Copy Dockerfile to root folder. Signed-off-by: pipeacosta --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..31e7c18bae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# sogno/dpsim:dev is built by dpsim-git/packaging/Docker/Dockerfile.dev +ARG BASE_IMAGE=sogno/dpsim:dev + +FROM ${BASE_IMAGE} + +LABEL \ + org.label-schema.schema-version = "1.0.0" \ + org.label-schema.name = "DPsim" \ + org.label-schema.license = "MPL 2.0" \ + org.label-schema.url = "http://dpsim.fein-aachen.org/" \ + org.label-schema.vcs-url = "https://github.com/sogno-platform/dpsim" + +COPY . /dpsim/ +RUN rm -rf /dpsim/build && mkdir /dpsim/build +WORKDIR /dpsim + +RUN python3 -m build --wheel +RUN python3 -m pip install ./dist/dpsim* + +EXPOSE 8888 +CMD [ "jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--no-browser", "--LabApp.token=3adaa57df44cea75e60c0169e1b2a98ae8f7de130481b5bc" ]