2019-03-15 09:39:18 +00:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
2019-08-20 09:18:19 +00:00
|
|
|
RUN apt-get update -yqq \
|
|
|
|
&& apt-get install -yqq --no-install-recommends software-properties-common \
|
2020-03-18 12:08:08 +00:00
|
|
|
sudo curl wget cmake pkg-config locales git gcc-8 g++-8 \
|
2020-05-23 02:47:24 +00:00
|
|
|
openssl libssl-dev libjsoncpp-dev uuid-dev zlib1g-dev libc-ares-dev\
|
2019-08-20 09:18:19 +00:00
|
|
|
postgresql-server-dev-all libmariadbclient-dev libsqlite3-dev \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& locale-gen en_US.UTF-8
|
2019-03-15 09:39:18 +00:00
|
|
|
|
2019-08-20 09:18:19 +00:00
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
|
|
LANGUAGE=en_US:en \
|
|
|
|
LC_ALL=en_US.UTF-8 \
|
|
|
|
CC=gcc-8 \
|
|
|
|
CXX=g++-8 \
|
|
|
|
AR=gcc-ar-8 \
|
|
|
|
RANLIB=gcc-ranlib-8 \
|
|
|
|
IROOT=/install
|
2019-03-15 09:39:18 +00:00
|
|
|
|
2019-08-20 09:18:19 +00:00
|
|
|
ENV DROGON_ROOT="$IROOT/drogon"
|
2019-03-15 09:39:18 +00:00
|
|
|
|
2019-08-20 09:18:19 +00:00
|
|
|
ADD https://api.github.com/repos/an-tao/drogon/git/refs/heads/master $IROOT/version.json
|
|
|
|
RUN git clone https://github.com/an-tao/drogon $DROGON_ROOT
|
2019-03-15 09:39:18 +00:00
|
|
|
|
|
|
|
WORKDIR $DROGON_ROOT
|
|
|
|
|
2019-08-20 09:18:19 +00:00
|
|
|
RUN ./build.sh
|