-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (50 loc) · 1.56 KB
/
Copy pathDockerfile
File metadata and controls
61 lines (50 loc) · 1.56 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:24.04
# Author label
LABEL maintainer="Delilah Maloney <Delilah.Maloney@tufts.edu>"
# Help message
LABEL description="This container contains Morpho v0.6.3 installed on ubuntu:24.04.https://github.com/Morpho-lang/morpho"
# Set environment variables
ENV PATH=/opt/morpho/bin:$PATH \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8
# Download and install Anaconda
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y build-essential wget git ca-certificates locales \
&& locale-gen en_US.UTF-8 \
&& update-locale LANG=en_US.UTF-8 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# apt-get install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libglfw3-dev \
libsuitesparse-dev \
liblapacke-dev povray \
libfreetype6-dev \
libunistring-dev
# Build Morpho
RUN git clone https://github.com/Morpho-lang/morpho.git \
&& git switch dev \
&& cd morpho \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make install \
&& cd ../../
# Build Morpho-cli
RUN git clone https://github.com/Morpho-lang/morpho-cli.git \
&& cd morpho-cli \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make install \
&& cd ../../
# Build Morphoview
RUN git clone https://github.com/Morpho-lang/morpho-morphoview.git \
&& cd morpho-morphoview \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make install
# Set default shell to bash
SHELL ["/bin/bash", "-c"]