-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (30 loc) · 992 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
33
34
35
36
############################################################
# Base Image
############################################################
# Build Args
ARG BASE_IMAGE
# Base Image
FROM ${BASE_IMAGE:-docker.io/library/docker:19}
############################################################
# Artifacts
############################################################
COPY . /tmp/mpi
############################################################
# Installation
############################################################
RUN chmod -R 755 /tmp/mpi &&\
/tmp/mpi/install-prerequisites.sh &&\
/tmp/mpi/install.sh "/usr/local" &&\
rm -rf /tmp/mpi &&\
# Configuration
mkdir -p /cache &&\
envcli config set cache-path "/cache" &&\
# Aliases
envcli install-aliases &&\
# Permissions
chmod +x /usr/local/bin/*
############################################################
# Execution
############################################################
ENTRYPOINT []
CMD []