forked from Mouws/protonmail-bridge-nextcoud-podman
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:
parent
d2828adae6
commit
a19458f703
@ -1,15 +1,14 @@
|
|||||||
# Use carlosedp/golang for riscv64 support
|
FROM debian:sid-slim AS build
|
||||||
FROM carlosedp/golang:1.18 AS build
|
|
||||||
|
|
||||||
# Install dependencies
|
# 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
|
# Build
|
||||||
WORKDIR /build/
|
WORKDIR /build/
|
||||||
COPY build.sh VERSION /build/
|
COPY build.sh VERSION /build/
|
||||||
RUN bash build.sh
|
RUN bash build.sh
|
||||||
|
|
||||||
FROM ubuntu:jammy
|
FROM debian:sid-slim
|
||||||
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
||||||
|
|
||||||
EXPOSE 25/tcp
|
EXPOSE 25/tcp
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:jammy
|
FROM debian:sid-slim
|
||||||
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
||||||
|
|
||||||
EXPOSE 25/tcp
|
EXPOSE 25/tcp
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user