-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
24 lines (21 loc) · 915 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
FROM archlinux:latest AS temp
ARG NVME0=/tmp
ARG CI_JOB_ID=test
USER root
RUN rm /etc/pacman.d/mirrorlist
RUN echo 'Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist
RUN echo 'Server = http://mirror.sunred.org/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist
RUN echo 'Server = http://md.mirrors.hacktegic.com/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist
RUN yes | pacman -Syyu archlinux-keyring openssl openssl-1.1 --noconfirm
RUN pacman-key --init
RUN pacman-key --populate archlinux
RUN yes | pacman -Su --noconfirm
RUN yes | pacman -S gcc cmake make git numactl boost --noconfirm
RUN yes | pacman -Scc
RUN rm -Rf /root/.* /makepkg/.* /var/lib/pacman/* /usr/share/cmake/Help/* /usr/share/graphviz/doc/* || true
COPY ./ /parallax
WORKDIR /parallax/
RUN cmake --workflow --preset debug
RUN cmake --workflow --preset release
FROM scratch
COPY --from=temp / /