summaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
authorunitexe <unitexe70@gmail.com>2026-02-27 16:16:05 -0600
committerunitexe <unitexe70@gmail.com>2026-02-27 16:45:51 -0600
commit3b3776faf882fc7013bdaa804d6c5972cbca0406 (patch)
tree24b4d632f561f5cac77e1804a282f5b02216041b /Containerfile
parent53dbe597ae5b46812fc98d1da059e08a7e73047c (diff)
Build container for armv7 platformHEADv/0.2.0main
Switch from alpine to debian slim bookworm since rust alpine doesn't have a image for armv7 by default but debian slim bookworm does.
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Containerfile b/Containerfile
index 4c8852b..7e808b2 100644
--- a/Containerfile
+++ b/Containerfile
@@ -4,9 +4,9 @@
# Build stage
#
-FROM rust:1.91-alpine3.23 AS builder
+FROM rust:1.91-slim-bookworm AS builder
-RUN apk add --no-cache musl-dev protobuf-dev
+RUN apt-get update && apt-get install -y pkg-config protobuf-compiler && rm -rf /var/lib/apt/lists/*
WORKDIR /app
@@ -24,9 +24,9 @@ RUN cargo build --release
# Run stage
#
-FROM alpine:latest
+FROM debian:bookworm-slim
-RUN apk add --no-cache libgcc
+RUN apt-get update && apt-get install -y libgcc-s1 && rm -rf /var/lib/apt/lists/*
WORKDIR /app