docker: Switch to Debian base image.

With Go 1.20, a dependency to "libresolv.so.2" is added which is not available
in Alpine.
This commit is contained in:
Joachim Bauch 2023-02-22 11:44:10 +01:00
parent 737d637987
commit 4a43fe1df9
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
2 changed files with 10 additions and 6 deletions

View file

@ -10,11 +10,13 @@ RUN apt-get -y update && \
if [ -d "vendor" ]; then GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOPROXY=off make proxy -j$(nproc); else \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make proxy -j$(nproc); fi
FROM alpine:3
FROM debian:bullseye-slim
ENV CONFIG=/config/proxy.conf
RUN adduser -D spreedbackend && \
apk add --no-cache bash ca-certificates libc6-compat libstdc++
RUN adduser --system --no-create-home spreedbackend && \
apt-get update -y && \
apt-get install -y ca-certificates && \
rm -rf /var/apt/lists/*
COPY --from=builder /workdir/bin/proxy /usr/bin/nextcloud-spreed-signaling-proxy
COPY ./proxy.conf.in /config/proxy.conf.in

View file

@ -11,11 +11,13 @@ RUN apt-get -y update && \
if [ -d "vendor" ]; then GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOPROXY=off make server -j$(nproc); else \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make server -j$(nproc); fi
FROM alpine:3
FROM debian:bullseye-slim
ENV CONFIG=/config/server.conf
RUN adduser -D spreedbackend && \
apk add --no-cache bash ca-certificates libc6-compat libstdc++
RUN adduser --system --no-create-home spreedbackend && \
apt-get update -y && \
apt-get install -y ca-certificates && \
rm -rf /var/apt/lists/*
COPY --from=builder /workdir/bin/signaling /usr/bin/nextcloud-spreed-signaling
COPY ./server.conf.in /config/server.conf.in