Debian Codegraph @

Dockerfile

raw
1 FROM rockylinux:9 as builder
2
3 RUN dnf install -y 'dnf-command(config-manager)' && \
4 dnf config-manager --enable crb && \
5 dnf install -y git python3 mesa-libGL-devel ninja-build
6 WORKDIR /dials
7 COPY installer/bootstrap.py .
8 ENV PIP_ROOT_USER_ACTION=ignore
9 RUN python3 bootstrap.py --libtbx
10
11 # Copy to final image
12 FROM rockylinux:9
13 RUN dnf install -y glibc-locale-source
14 RUN localedef -i en_US -f UTF-8 en_US.UTF-8
15 RUN echo "LANG=\"en_US.UTF-8\"" > /etc/locale.conf
16 ENV LANG en_US.UTF-8
17
18 RUN mkdir /dials
19 COPY --from=builder /dials/conda_base /dials/conda_base
20 COPY --from=builder /dials/modules /dials/modules
21 COPY --from=builder /dials/build /dials/build
22 COPY --from=builder /dials/dials /dials
23 ENV PATH="/dials/conda_base/bin:/dials/build/bin:$PATH"
24 CMD ["dials.version"]