forked from dietmarw/OpenIPSL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 1.03 KB
/
Copy pathDockerfile
File metadata and controls
36 lines (28 loc) · 1.03 KB
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
33
34
35
36
FROM phusion/baseimage:0.9.22
MAINTAINER Maxime Baudette "baudette@kth.se"
# Based on Dockerfile from OM Webbook by Arunkumar Palanisamy "arunkumar.palanisamy@liu.se"
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
ARG DEBIAN_FRONTEND=noninteractive
USER root
# Make sure apt is up to date
RUN add-apt-repository 'deb http://build.openmodelica.org/apt xenial stable'
RUN curl -s http://build.openmodelica.org/apt/openmodelica.asc | apt-key add -
# Install python, omc
RUN apt-get update --fix-missing && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && apt-get install -y \
python-pip \
python-dev \
build-essential \
python-numpy \
omc \
omlib-modelica-3.2.2
# Install OMPython
RUN python -m pip install -U https://github.com/OpenModelica/OMPython/archive/master.zip
# Clean up APT when done.
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add User
RUN useradd -m -s /bin/bash smartslab
RUN chown -R smartslab:smartslab /home/smartslab
USER smartslab
ENV USER smartslab
WORKDIR /home/smartslab