-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathDockerfile
32 lines (23 loc) · 891 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Use an official Python runtime as a parent image
FROM python:3.6-stretch
MAINTAINER Marvin LEROUSSEAU <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y \
less \
apt-transport-https \
software-properties-common
# Install octave
RUN apt-get install -y octave && \
apt-get remove -y software-properties-common \
&& rm -rf /var/lib/apt/lists/*
# Git get matpower6.0 and pypownet
RUN git clone https://github.com/MATPOWER/matpower.git && \
git clone https://github.com/MarvinLer/pypownet.git
# Install pypownet (including necessary packages installation)
WORKDIR pypownet/
RUN cd /pypownet && python setup.py install && cd ..
# Make port 80 available to the world outside this container
EXPOSE 80
# Run the sample experiments when the container launches
CMD ["python3.6", "-m", "pypownet.main"]