2 Commits

Author SHA1 Message Date
f00ddc7d10 Merge pull request 'try arch docker' (#16) from feature/arch-in-docker into master
All checks were successful
Build and Publish Images / build-and-push (push) Successful in 2m37s
Reviewed-on: http://192.168.31.100:3847/Arrelin/family_budget/pulls/16
2026-01-28 08:58:05 +00:00
arrelin
332c9e141b try arch docker 2026-01-28 11:57:51 +03:00

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