Dockerfile 1.02 KB
Newer Older
1
# rwthacs/dpsim-dev is built by dpsim-git/Packaging/Docker/Dockerfile.dev
2
3
ARG DOCKER_TAG=latest
FROM rwthacs/dpsim-dev:${DOCKER_TAG} AS builder
4
5
6
7
8
9
10

COPY . /dpsim/

RUN rm -rf /dpsim/build && mkdir /dpsim/build 
WORKDIR /dpsim/build

RUN cmake -DBUILD_EXAMPLES=OFF -DCPACK_GENERATOR=RPM ..
11
RUN make -j$(nproc) package
12
13
14
15
16
17
18
19
20
21
22
23
24

FROM fedora:28

LABEL \
	org.label-schema.schema-version = "1.0" \
	org.label-schema.name = "DPsim" \
	org.label-schema.license = "GPL-3.0" \
	org.label-schema.vendor = "Institute for Automation of Complex Power Systems, RWTH Aachen University" \
	org.label-schema.author.name = "Steffen Vogel" \
	org.label-schema.author.email = "stvogel@eonerc.rwth-aachen.de" \
	org.label-schema.url = "http://fein-aachen.org/projects/dpsim/" \
	org.label-schema.vcs-url = "https://git.rwth-aachen.de/acs/core/simulation/DPsim"

Markus Mirz's avatar
Markus Mirz committed
25
ADD https://packages.fein-aachen.org/fein.repo /etc/yum.repos.d/
26
27
28
29
30
31
32

COPY --from=builder /dpsim/build/*.rpm /tmp
RUN dnf -y install /tmp/*.rpm

ADD requirements.txt .
RUN pip3 install -r requirements.txt

33
CMD python3