-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (32 loc) · 896 Bytes
/
Dockerfile
File metadata and controls
41 lines (32 loc) · 896 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
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
curl \
build-essential \
git \
pkg-config \
libssl-dev \
llvm-17 \
llvm-17-dev \
llvm-17-tools \
clang-17 \
zlib1g-dev \
libllvm17 \
libfontconfig1-dev \
libpolly-17-dev \
libzstd-dev \
&& rm -rf /var/lib/apt/lists/*
ENV LLVM_SYS_170_PREFIX=/usr/lib/llvm-17
ENV PATH="/usr/lib/llvm-17/bin:$PATH"
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /usr/sicc
COPY . .
VOLUME ["/usr/sicc"]
CMD if [ "$(ls -A /usr/sicc)" ]; then \
/bin/bash; \
else \
echo "Error: /usr/sicc does not exist or is empty" && exit 1; \
fi
# To build this, use: `docker build -t sicc-env .`
# To run this, use: `docker run -it --rm -v $(pwd):/usr/sicc sicc-env`