FROM golangci/golangci-lint:v1.21 AS build
LABEL maintainer="vladimir@hodakov.me"
COPY --from=fat0troll/tdlib /usr/local/include/td /usr/local/include/td
COPY --from=fat0troll/tdlib /usr/local/lib/libtd* /usr/local/lib/
RUN apt-get update && apt-get -y install libssl-dev cmake zlib1g-dev g++
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt/lists/*