-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (20 loc) · 899 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
# Docker image used for performing installation tests with GitHub Actions
FROM python:3.12
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Clone the Spack repository to /app/spack and set up the environment
RUN git clone --depth=100 --branch=releases/v0.22 https://github.com/spack/spack.git && \
/bin/bash -c "source /app/spack/share/spack/setup-env.sh"
# Set environment variable for Spack paths
ENV PYTHONPATH="/app/spack/lib/spack/external/_vendoring:/app/spack/lib/spack/external:/app/spack/lib/spack"
ENV SPACK_ROOT="/app/spack"
ENV SPACK_PKGS="/app/spack/var/spack/repos/builtin/packages"
# add spack to path
ENV PATH="/app/spack/bin:${PATH}"
RUN spack install py-hatchling py-blinker py-itsdangerous py-werkzeug