2024-12-05 10:16:00 +01:00
|
|
|
# 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 .`
|
2025-02-21 10:27:51 +01:00
|
|
|
# 2. Tag the image: `docker tag <id> git.hofer.link/philipp/ci-images:rust-latest`
|
2025-01-31 12:38:39 +01:00
|
|
|
# 3. Push the image: `docker push git.hofer.link/philipp/ci-images:rust-latest`
|
2024-12-05 10:16:00 +01:00
|
|
|
|
2025-02-21 10:27:51 +01:00
|
|
|
FROM rust:1.85.0
|
2024-12-05 10:16:00 +01:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y sqlite3
|
|
|
|
|
|
|
|
# nodejs
|
|
|
|
RUN apt-get install -y curl && \
|
2025-01-03 15:03:53 +01:00
|
|
|
curl -sL https://deb.nodesource.com/setup_23.x | bash - && \
|
2024-12-05 10:16:00 +01:00
|
|
|
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
|
|
|
|
|