fix builds by switching base layer to debian:sid-slim

tested locally, works fine.
debian has supported riscv64 in the sid image for some time.

this is the same thing the carlosedp/golang image did.

this also fixes the bug with the wrong glibc version, as the build
container now uses the same glibc version as the final container.
This commit is contained in:
simonfelding 2025-02-15 17:07:15 +01:00 committed by GitHub
parent d2828adae6
commit a19458f703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -1,15 +1,14 @@
# Use carlosedp/golang for riscv64 support
FROM carlosedp/golang:1.18 AS build
FROM debian:sid-slim AS build
# Install dependencies
RUN apt-get update && apt-get install -y git build-essential libsecret-1-dev
RUN apt-get update && apt-get install -y git golang build-essential libsecret-1-dev
# Build
WORKDIR /build/
COPY build.sh VERSION /build/
RUN bash build.sh
FROM ubuntu:jammy
FROM debian:sid-slim
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
EXPOSE 25/tcp

View File

@ -1,4 +1,4 @@
FROM ubuntu:jammy
FROM debian:sid-slim
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
EXPOSE 25/tcp