aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-01-05 21:23:50 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-01-05 21:23:50 +0100
commit802cca1963bc27f8ea4e4923029909e45464d3df (patch)
treea473a1e1a03e5907fcf82e24f260b0b7d8ec7d8a /docker
parent295081130ca1eed6e67dfc035e2df2c9ed49b174 (diff)
downloadllvm-kaleidoscope-rs-802cca1963bc27f8ea4e4923029909e45464d3df.tar.gz
llvm-kaleidoscope-rs-802cca1963bc27f8ea4e4923029909e45464d3df.zip
bump to llvm14 and add docker file
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile18
-rw-r--r--docker/Makefile2
2 files changed, 20 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..5a7b498
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,18 @@
+FROM ubuntu
+
+RUN apt update && \
+ DEBIAN_FRONTEND=noninteractive \
+ apt install \
+ --yes \
+ --no-install-recommends \
+ ca-certificates \
+ build-essential \
+ cargo \
+ llvm-14 \
+ llvm-14-dev \
+ # https://gitlab.com/taricorp/llvm-sys.rs/-/issues/13
+ libclang-common-14-dev \
+ zlib1g-dev \
+ && \
+ rm -rf /var/lib/apt/lists/* && \
+ apt-get clean
diff --git a/docker/Makefile b/docker/Makefile
new file mode 100644
index 0000000..6b3ef8b
--- /dev/null
+++ b/docker/Makefile
@@ -0,0 +1,2 @@
+build:
+ podman build -t ks-rs .