-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
54 lines (43 loc) · 1.58 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:focal
LABEL Name=vscmgcpp Version=0.0.1
# Non-interactive installation mode
ENV DEBIAN_FRONTEND=noninteractive
# These commands copy your files into the specified directory in the image
# and set that as the working location
COPY . /usr/src/vscmgcpp
WORKDIR /usr/src/vscmgcpp
# Update apt database and install reqired packages
RUN apt-get update && apt-get install -y \
# g++ build essential
build-essential \
# cmake and ccmake
cmake cmake-curses-gui \
# Eigen3 for algebra
libeigen3-dev \
# boost for ode integrator and python wrapper
libboost-all-dev \
# python3 for python bindings
python3 \
# pip
python3-pip \
python-is-python3 \
&& rm -rf /var/lib/apt/lists/*
# install numpy
RUN pip3 install numpy
# Set the locale
# RUN locale-gen en_US.UTF-8
# build annd install adcs library
RUN set -ex; \
mkdir -p /usr/src/vscmgcpp/build; \
cd /usr/src/vscmgcpp/build; \
cmake .. -DBUILD_PYTHON_LIB=True; \
make; \
make install
WORKDIR /usr/src/vscmgcpp/
RUN touch README.md
RUN python setup.py build
RUN pip install .
# Remove source code
RUN rm -rf cmake/ docker include/ src/ Dockerfile adcs.egg-info/
WORKDIR /usr/src/vscmgcpp/examples/python
CMD ["bash"]