mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-01 19:27:53 +08:00
Update the ubuntu Dockerfile
This commit is contained in:
parent
94ca651cbd
commit
63b7f5eb13
@ -1,29 +1,29 @@
|
|||||||
FROM ubuntu:20.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
ENV TZ=UTC
|
ENV TZ=UTC
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
RUN apt-get update -yqq \
|
RUN apt-get update -yqq \
|
||||||
&& apt-get install -yqq --no-install-recommends software-properties-common \
|
&& apt-get install -yqq --no-install-recommends software-properties-common \
|
||||||
curl wget cmake make pkg-config locales git gcc-10 g++-10 \
|
sudo curl wget cmake make pkg-config locales git gcc-11 g++-11 \
|
||||||
openssl libssl-dev libjsoncpp-dev uuid-dev zlib1g-dev libc-ares-dev\
|
openssl libssl-dev libjsoncpp-dev uuid-dev zlib1g-dev libc-ares-dev\
|
||||||
postgresql-server-dev-all libmariadbclient-dev libsqlite3-dev libhiredis-dev\
|
postgresql-server-dev-all libmariadb-dev libsqlite3-dev libhiredis-dev\
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& locale-gen en_US.UTF-8
|
&& locale-gen en_US.UTF-8
|
||||||
|
|
||||||
ENV LANG=en_US.UTF-8 \
|
ENV LANG=en_US.UTF-8 \
|
||||||
LANGUAGE=en_US:en \
|
LANGUAGE=en_US:en \
|
||||||
LC_ALL=en_US.UTF-8 \
|
LC_ALL=en_US.UTF-8 \
|
||||||
CC=gcc-10 \
|
CC=gcc-11 \
|
||||||
CXX=g++-10 \
|
CXX=g++-11 \
|
||||||
AR=gcc-ar-10 \
|
AR=gcc-ar-11 \
|
||||||
RANLIB=gcc-ranlib-10 \
|
RANLIB=gcc-ranlib-11 \
|
||||||
IROOT=/install
|
IROOT=/install
|
||||||
|
|
||||||
ENV DROGON_ROOT="$IROOT/drogon"
|
ENV DROGON_ROOT="$IROOT/drogon"
|
||||||
|
|
||||||
ADD https://api.github.com/repos/an-tao/drogon/git/refs/heads/master $IROOT/version.json
|
ADD https://api.github.com/repos/drogonframework/drogon/git/refs/heads/master $IROOT/version.json
|
||||||
RUN git clone https://github.com/an-tao/drogon $DROGON_ROOT
|
RUN git clone https://github.com/drogonframework/drogon $DROGON_ROOT
|
||||||
|
|
||||||
WORKDIR $DROGON_ROOT
|
WORKDIR $DROGON_ROOT
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user