drogon/docker/ubuntu/Dockerfile

31 lines
912 B
Docker
Raw Normal View History

2023-09-25 18:06:08 +08:00
FROM ubuntu:22.04
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2019-03-15 17:39:18 +08:00
2019-08-20 17:18:19 +08:00
RUN apt-get update -yqq \
&& apt-get install -yqq --no-install-recommends software-properties-common \
2023-09-25 18:06:08 +08:00
sudo curl wget cmake make pkg-config locales git gcc-11 g++-11 \
2020-05-23 10:47:24 +08:00
openssl libssl-dev libjsoncpp-dev uuid-dev zlib1g-dev libc-ares-dev\
2023-09-25 18:06:08 +08:00
postgresql-server-dev-all libmariadb-dev libsqlite3-dev libhiredis-dev\
2019-08-20 17:18:19 +08:00
&& rm -rf /var/lib/apt/lists/* \
&& locale-gen en_US.UTF-8
2019-03-15 17:39:18 +08:00
2019-08-20 17:18:19 +08:00
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \
2023-09-25 18:06:08 +08:00
CC=gcc-11 \
CXX=g++-11 \
AR=gcc-ar-11 \
RANLIB=gcc-ranlib-11 \
2019-08-20 17:18:19 +08:00
IROOT=/install
2019-03-15 17:39:18 +08:00
2019-08-20 17:18:19 +08:00
ENV DROGON_ROOT="$IROOT/drogon"
2019-03-15 17:39:18 +08:00
2023-09-25 18:06:08 +08:00
ADD https://api.github.com/repos/drogonframework/drogon/git/refs/heads/master $IROOT/version.json
RUN git clone https://github.com/drogonframework/drogon $DROGON_ROOT
2019-03-15 17:39:18 +08:00
WORKDIR $DROGON_ROOT
2019-08-20 17:18:19 +08:00
RUN ./build.sh