add symlink for libstdc++

This commit is contained in:
Sebastian Hugentobler 2020-07-08 20:44:47 +02:00
parent 72e00cea17
commit fe93472f6e

View File

@ -1,4 +1,4 @@
FROM golang:alpine as builder FROM golang:1-alpine3.12 as builder
ENV VERSION=v0.1.2 ENV VERSION=v0.1.2
@ -6,15 +6,16 @@ RUN apk --no-cache add \
git \ git \
gcc \ gcc \
olm-dev \ olm-dev \
libstdc++ \ libc-dev \
musl-dev musl-dev
RUN ln -s /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so
WORKDIR /build WORKDIR /build
RUN git clone https://github.com/tulir/mautrix-whatsapp.git RUN git clone https://github.com/tulir/mautrix-whatsapp.git
WORKDIR /build/mautrix-whatsapp WORKDIR /build/mautrix-whatsapp
RUN git checkout $VERSION RUN git checkout $VERSION
RUN go get
RUN go build -o /build/bin/mautrix-whatsapp RUN go build -o /build/bin/mautrix-whatsapp
FROM thallian/confd-env:latest FROM thallian/confd-env:latest
@ -28,7 +29,7 @@ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
libstdc++ 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 olm
WORKDIR /var/lib/matrix-bridge WORKDIR /var/lib/matrix-bridge