This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM arm32v7/debian:stretch as builder | |
RUN apt-get update && apt-get install -y wget build-essential libffi-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev libffi-dev uuid-dev tk-dev | |
RUN wget -qO- https://github.com/openssl/openssl/archive/OpenSSL_1_1_1j.tar.gz | tar -xz -C /usr/src/ | |
RUN cd /usr/src/openssl-OpenSSL_1_1_1j && ./config -Wl,-Bsymbolic-functions -fPIC shared --prefix=/usr/local/openssl && make && make install && tar cvfz /openssl-1.1.1j.tar.gz /usr/local/openssl | |
ENV CFLAGS="-I/usr/local/openssl/include" LDFLAGS="-L/usr/local/openssl/lib" LD_LIBRARY_PATH="/usr/local/openssl/lib" PATH="/usr/local/openssl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:bionic as golang | |
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:masterminds/glide && \ | |
apt-get update && apt-get install -y gcc git wget unzip glide && apt-get clean | |
RUN wget -qO- https://golang.org/dl/go1.15.linux-amd64.tar.gz | tar xvz -C /usr/local && export PATH=$PATH:/usr/local/bin | |
ENV PATH="/usr/local/go/bin:${PATH}" | |
FROM golang as builder |