From a564e816f92e6b0e0fd130898887083ba1e30dc9 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Thu, 5 Dec 2024 10:16:00 +0100 Subject: [PATCH] add rust image --- rust/Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 rust/Dockerfile diff --git a/rust/Dockerfile b/rust/Dockerfile new file mode 100644 index 0000000..2b3dd22 --- /dev/null +++ b/rust/Dockerfile @@ -0,0 +1,26 @@ +# This dockerfile is used as basis for the CI jobs. +# Process to renew it: +# 0. Login to gitea docker registry: `docker login git.hofer.link` +# 1. Build the image `docker build .` +# 2. Tag the image: `docker tag git.hofer.link/philipp/ci-images:rust-` +# 3. Push the image: `docker push git.hofer.link/philipp/ci-images:rust-` + +FROM rust:1.83.0 + +RUN apt-get update && apt-get install -y sqlite3 + +# nodejs +RUN apt-get install -y curl && \ + curl -sL https://deb.nodesource.com/setup_22.x | bash - && \ + apt-get install -y nodejs + +# playwright +RUN npx playwright install --with-deps + +# deployment +RUN rustup target add x86_64-unknown-linux-musl +RUN apt-get install -y -qq pkg-config sshpass musl musl-tools curl gnupg libssl-dev + +# TEMPORARY act workaround (otherwise gitea cache is not working) +RUN apt-get install -y zstd +