try arch docker #16

Merged
Arrelin merged 1 commits from feature/arch-in-docker into master 2026-01-28 11:58:05 +03:00
Showing only changes of commit 332c9e141b - Show all commits

View File

@@ -1,4 +1,8 @@
FROM rust:bookworm AS builder
FROM archlinux:latest AS builder
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm rust cargo && \
pacman -Scc --noconfirm
WORKDIR /app
@@ -11,12 +15,11 @@ COPY src ./src
RUN touch src/main.rs
RUN cargo build --release
FROM debian:bookworm-slim
FROM archlinux:latest
RUN apt-get update && apt-get install -y \
libssl3 \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm openssl ca-certificates && \
pacman -Scc --noconfirm
WORKDIR /app