mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-04-28 12:02:44 +02:00
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:
parent
737d637987
commit
4a43fe1df9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue