-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (18 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
20 lines (18 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:20.04
RUN apt-get update && apt-get upgrade -qq && apt-get install -qq build-essential git python3 curl sudo python3-pip python-setuptools unzip
# Create new user user_spack
RUN useradd --create-home --shell /bin/bash user_spack
RUN echo 'user_spack:spack' | chpasswd
RUN usermod -aG sudo user_spack
USER user_spack
WORKDIR /home/user_spack
# Setup Spack
RUN git clone https://github.com/spack/spack && cd spack && git checkout releases/v0.14 && . share/spack/setup-env.sh
RUN mkdir -p /home/user_spack/.spack
COPY packages.yaml /home/user_spack/.spack/packages.yaml
RUN . ~/spack/share/spack/setup-env.sh &&\
spack install python@3.5.0 ^openssl@1.0.2t &&\
spack install python@3.6.0 &&\
spack install python@3.7.0 &&\
spack install python@3.8.0 &&\
spack install py-tox