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
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
This commit was merged in pull request #16.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user