mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
download frontend dist from github release
This commit is contained in:
parent
1f9eca8b7d
commit
05475fb161
@ -4,9 +4,14 @@ ENV OJ_ENV production
|
||||
RUN apk add --no-cache supervisor jpeg-dev zlib-dev postgresql-dev freetype-dev
|
||||
|
||||
ADD deploy/requirements.txt /tmp
|
||||
RUN apk add --update --no-cache build-base nginx openssl && \
|
||||
pip install --no-cache-dir -r /tmp/requirements.txt -i https://pypi.doubanio.com/simple && \
|
||||
RUN printf "https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.6/community/\nhttps://mirrors.tuna.tsinghua.edu.cn/alpine/v3.6/main/" > /etc/apk/repositories && \
|
||||
apk add --update --no-cache build-base nginx openssl curl unzip && \
|
||||
pip install --no-cache-dir -r /tmp/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple && \
|
||||
apk del build-base --purge
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
RUN curl -L $(curl -s https://api.github.com/repos/QingdaoU/OnlineJudgeFE/releases/latest | grep /dist.zip | cut -d '"' -f 4) -o dist.zip && \
|
||||
unzip dist.zip && \
|
||||
rm dist.zip
|
||||
CMD sh /app/deploy/run.sh
|
||||
|
||||
Loading…
Reference in New Issue
Block a user