加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
木鱼 提交于 2021-04-13 05:57 . fix: docker build
FROM ubuntu:18.04
COPY trunk/install/sources.list.sh /opt/sources.list.sh
ARG APT_MIRROR="Y"
ARG APT_CA="N"
RUN [ "$APT_CA" = "Y" ] && apt-get -y update && apt install -y ca-certificates || true
# Linux: Aliyun Apt Mirrors.
RUN [ "$APT_MIRROR" != "N" ] && bash /opt/sources.list.sh || true
RUN apt-get -y update && \
apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive \
apt-get -y install --no-install-recommends \
nginx \
mysql-server \
libmysqlclient-dev \
libmysql++-dev \
php-common \
php-fpm \
php-mysql \
php-gd \
php-zip \
php-mbstring \
php-xml \
make \
flex \
gcc \
g++ \
openjdk-11-jdk
COPY trunk /trunk
COPY docker/ /opt/docker/
RUN bash /opt/docker/setup.sh
# VOLUME [ "/volume", "/home/judge/backup", "/home/judge/data", "/home/judge/etc", "/home/judge/web", "/var/lib/mysql" ]
VOLUME [ "/volume" ]
ENTRYPOINT [ "/bin/bash", "/opt/docker/entrypoint.sh" ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化