加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/zhblue/hustoj
克隆/下载
Dockerfile 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
FROM ubuntu:22.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 \
php-yaml \
make \
flex \
gcc \
g++
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" ]
EXPOSE 80
ENTRYPOINT [ "/bin/bash", "/opt/docker/entrypoint.sh" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化