forked from dials/dials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (22 loc) · 821 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
FROM rockylinux:9 as builder
RUN dnf install -y 'dnf-command(config-manager)' && \
dnf config-manager --enable crb && \
dnf install -y git python3 mesa-libGL-devel ninja-build
WORKDIR /dials
COPY installer/bootstrap.py .
ENV PIP_ROOT_USER_ACTION=ignore
ENV CMAKE_GENERATOR=Ninja
RUN python3 bootstrap.py
RUN /dials/conda_base/bin/cmake --install build
RUN /dials/conda_base/bin/python3 -mpip install modules/dxtbx modules/dials modules/xia2
# Copy to final image
FROM rockylinux:9
RUN dnf install -y glibc-locale-source
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
RUN echo "LANG=\"en_US.UTF-8\"" > /etc/locale.conf
ENV LANG en_US.UTF-8
RUN mkdir /dials
COPY --from=builder /dials/conda_base /dials/conda_base
COPY --from=builder /dials/dials /dials
ENV PATH="/dials/conda_base/bin:$PATH"
CMD ["dials.version"]