FROM daocloud.io/library/ubuntu:18.04
ENV HOME /home
ENV DEBIAN_FRONTEND noninteractive
ENV INITRD No
RUN set -eux; \
apt-get update; \
apt-get install -y locales; \
locale-gen en_US.utf8; \
rm -rf /var/lib/apt/lists/*
ENV LANG en_US.utf8
ENV LANGUAGE en_US.utf8
RUN set -eux; \
apt-get update; \
apt-get install -y apt-file; \
apt-file update; \
apt-get install -y software-properties-common; \
apt-get install -yq --no-install-recommends vim libboost-all-dev gcc-4.8; \
add-apt-repository -y ppa:ondrej/php; \
apt-get update -y; \
apt-get install -y curl wget openssl php7.2 php7.2-bcmath php7.2-cli php7.2-cgi php7.2-common php7.2-dev php7.2-apcu php7.2-geoip php7.2-fpm php7.2-json php7.2-memcached php7.2-memcache php7.2-mysql php7.2-pgsql php7.2-mongo php7.2-sqlite php7.2-sybase php7.2-interbase php7.2-odbc php7.2-ldap php7.2-gmp php7.2-intl php7.2-imagick php7.2-gd php7.2-imap php7.2-curl php7.2-oauth php7.2-redis php7.2-enchant php7.2-xml php7.2-xmlrpc php7.2-tidy php7.2-recode php7.2-readline php7.2-zip php7.2-pspell php7.2-mbstring php7.2-swoole; \
rm -rf /var/lib/apt/lists/*
# Tidy up
RUN set -eux; \
apt-get -y autoremove; \
apt-get clean; \
apt-get autoclean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir -p /usr/share/nginx/html && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# Allow mounting files
VOLUME ["/usr/share/nginx/html"]
# Set the work directory
WORKDIR /usr/share/nginx/html
CMD ["php-fpm7.2", "-F"]
EXPOSE 9000
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.