From fe93472f6ee816bb9c38dc398902d75bf6a246cd Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 8 Jul 2020 20:44:47 +0200 Subject: [PATCH] add symlink for libstdc++ --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47bd5dc..412b6d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine as builder +FROM golang:1-alpine3.12 as builder ENV VERSION=v0.1.2 @@ -6,15 +6,16 @@ RUN apk --no-cache add \ git \ gcc \ olm-dev \ - libstdc++ \ + libc-dev \ musl-dev +RUN ln -s /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so + WORKDIR /build RUN git clone https://github.com/tulir/mautrix-whatsapp.git WORKDIR /build/mautrix-whatsapp RUN git checkout $VERSION -RUN go get RUN go build -o /build/bin/mautrix-whatsapp FROM thallian/confd-env:latest @@ -28,7 +29,7 @@ RUN apk --no-cache add \ ca-certificates \ libstdc++ -RUN apk --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main add \ +RUN apk --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community add \ olm WORKDIR /var/lib/matrix-bridge