Add a Dockerfile

This commit is contained in:
antao 2019-03-15 17:39:18 +08:00
parent db266d9aad
commit 3ba18b2102
1 changed files with 30 additions and 0 deletions

30
Dockerfile Normal file
View File

@ -0,0 +1,30 @@
FROM ubuntu:18.04
RUN apt-get update -yqq && \
apt-get install -yqq --no-install-recommends software-properties-common && \
apt-get install -yqq --no-install-recommends sudo curl wget cmake locales git \
openssl libssl-dev libjsoncpp-dev uuid-dev zlib1g-dev
RUN apt-get install -yqq --no-install-recommends postgresql-server-dev-all
RUN apt-get install -yqq --no-install-recommends libmariadbclient-dev
RUN apt-get install -yqq --no-install-recommends libsqlite3-dev
RUN apt-get install -yqq --no-install-recommends gcc-8 g++-8
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV CC=gcc-8
ENV CXX=g++-8
ENV AR=gcc-ar-8
ENV RANLIB=gcc-ranlib-8
ENV IROOT=/install
ENV DROGON_ROOT=$IROOT/drogon
WORKDIR $IROOT
RUN git clone https://github.com/an-tao/drogon
WORKDIR $DROGON_ROOT
RUN ./build.sh