forked from OI-wiki/OI-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (17 loc) · 682 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:latest
WORKDIR /
RUN apt-get update \
&& apt-get install -y git wget curl python3 python3-pip gcc g++ make \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get install -y nodejs
# If you can't connect to GitHub, set WIKI_REPO to any mirror repo.
RUN git clone ${WIKI_REPO:-https://github.com/OI-wiki/OI-wiki.git} --depth=1 \
&& cd OI-wiki \
&& pip install -U -r requirements.txt \
&& npm install
ADD .bashrc /root/
WORKDIR /OI-wiki
EXPOSE 8000
CMD ["/bin/bash"]