S2OJ/install/db/Dockerfile
Masco Skray d413b746eb chore(install): separate services with docker-compose support
Without bundle, now you can choose to download single container.
For example, you can only download judger container to setup a new judger.
Also, the web container now no db and judger containing, except local sandbox.
You can use docker-compose to get every single container work together from now.
Single DB this time uses the latest MySQL 8 version, so some preferences are different.
2019-07-16 17:26:05 +08:00

10 lines
357 B
Docker

FROM mysql:latest
MAINTAINER MascoSkray <MascoSkray@gmail.com>
#Update apt and install curl
RUN apt-get update && apt-get install -y curl
#Run the latest UOJ Community verison db install script
RUN export RAW_URL=https://raw.githubusercontent.com/UniversalOJ/UOJ-System/master && curl $RAW_URL/install/db/install.sh | sh
ENV LANG=C.UTF-8 TZ=Asia/Shanghai