-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 827 Bytes
/
Dockerfile
File metadata and controls
28 lines (18 loc) · 827 Bytes
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
FROM alpine:3.20.0 AS build
RUN apk update
RUN apk add --no-cache build-base gcc g++ libc-dev clang18 clang18-headers libstdc++ libstdc++-dev libffi-dev llvm18 llvm18-dev pkgconf readline-dev
# setup symbolic links to versioned binaries, and libraries.
RUN ln -s /usr/bin/clang-18 /usr/bin/clang
RUN ln -s /usr/bin/clang++-18 /usr/bin/clang++
RUN ln -s /usr/lib/libLLVM-18.so /usr/lib/libLLVM.so
WORKDIR /torque
COPY . .
RUN LLVM_PATH="/usr/lib/llvm18" make -j$(nproc --all)
FROM alpine:3.20.0
RUN apk update
RUN apk add --no-cache libstdc++ libffi llvm18 llvm18-libs readline zsh
RUN ln -s /usr/lib/libLLVM-18.so /usr/lib/libLLVM.so
RUN ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so
RUN echo "cd /torque && source /torque/activate" >> ~/.zshrc
COPY --from=build ./torque ./torque
ENTRYPOINT [ "/bin/zsh" ]