-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile-ubuntu
More file actions
30 lines (22 loc) · 1.01 KB
/
Dockerfile-ubuntu
File metadata and controls
30 lines (22 loc) · 1.01 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
# Rosetta2Go
# https://github.com/Metaphorme/Rosetta2Go
# MIT License
# Copyright (c) 2022 Metaphorme <https://github.com/Metaphorme>
FROM ubuntu:focal
LABEL org.opencontainers.image.authors="Metaphorme" \
org.opencontainers.image.documentation="https://github.com/Metaphorme/Rosetta2Go"
ARG DEBIAN_FRONTEND=noninteractive \
FILE_SERVER='http://127.0.0.1:28294'
ENV PATH=$PATH:/rosetta/source/bin \
LIB_LIBRARY_PATH=/rosetta/source/external/lib:$LIB_LIBRARY_PATH \
VOLUME /data
RUN set -x; buildDeps='curl pigz python3 openmpi-bin libopenmpi-dev build-essential libopenmpi-dev zlib1g-dev vim nano' \
&& apt-get update; DEBIAN_FRONTEND=noninteractive apt-get install -y $buildDeps \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& cd /tmp \
&& curl -SL $FILE_SERVER/rosetta_src_3.13_bundle.tgz | pigz -d | tar -x \
&& mv /tmp/rosetta_src_2021.16.61629_bundle/main /rosetta \
&& cd /rosetta/source \
&& ./scons.py -j100 bin mode=release extras=mpi \
&& rm -rf /tmp/*
WORKDIR /data