summaryrefslogtreecommitdiff
path: root/Dockerfile-docs
blob: 11adbfe85d23a67d8c25a85a484fcb5deb8304e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# syntax=docker/dockerfile:1

ARG PYTHON_VERSION=3.10

FROM python:${PYTHON_VERSION}

ARG uid=1000
ARG gid=1000

RUN addgroup --gid $gid sphinx \
 && useradd --uid $uid --gid $gid -M sphinx

WORKDIR /src
COPY requirements.txt docs-requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt -r docs-requirements.txt

USER sphinx