forked from ppy/osu-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (16 loc) · 775 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.10-slim
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
git
# https://github.com/nodesource/distributions/blob/master/README.md
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs npm
WORKDIR /osu-wiki
COPY package.json package-lock.json scripts/requirements.txt /osu-wiki/
RUN npm install && npm install -g osu-wiki
RUN pip3 install -r requirements.txt
# Prevent git from refusing to work in a repository with "dubious ownership".
# The repository, mounted with --volume ...:/osu-wiki, is owned by a host user, and the container user is root.
# See run-checks.sh for more CI workarounds.
RUN git config --global --add safe.directory /osu-wiki