forked from OI-wiki/OI-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 829 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu:22.04
LABEL org.oi-wiki.image.authors="frank99-xu@outlook.com mxr612@icloud.com coelacanthus@outlook.com"
ARG WIKI_REPO PYPI_MIRROR LISTEN_IP LISTEN_PORT
ENV LISTEN_IP=${LISTEN_IP:-0.0.0.0}
ENV LISTEN_PORT=${LISTEN_PORT:-8000}
WORKDIR /
RUN apt-get update \
&& apt-get install -y git wget curl gcc g++ make \
&& curl -sL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& curl -LsSf https://astral.sh/uv/install.sh | sh
# 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 \
&& uv sync --index-url ${PYPI_MIRROR:-https://pypi.org/simple/} \
&& yarn --frozen-lockfile
ADD .bashrc /root/
WORKDIR /OI-wiki
EXPOSE ${LISTEN_PORT}
CMD ["/bin/bash"]