S2OJ/install/db/Dockerfile

10 lines
357 B
Docker
Raw Permalink Normal View History

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