ARG GOLANG_VERSION=1.12-alpine
FROM golang:$GOLANG_VERSION AS build
LABEL maintainer="vladimir@hodakov.me"
COPY --from=lab.wtfteam.pro:4567/containers/tdlib /usr/local/include/td /usr/local/include/td
COPY --from=lab.wtfteam.pro:4567/containers/tdlib /usr/local/lib/libtd* /usr/local/lib/
RUN apk update && apk add --no-cache git gcc libc-dev g++ make openssl-dev && rm -rf /var/cache/apk/*