-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (17 loc) · 633 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Base Docker image Official Python 3.10 | Debian
FROM python:3.12
# Set 'build-time' environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Packages required for Material for MkDocs plugins (dependency for git and pdf plugins)
RUN apt-get update && \
apt-get install -y git python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0
# Copy all contents into dir
COPY . /app/
# Set working directory
WORKDIR /app/
# Install requirements
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Set safe working directory for git
RUN git config --global --add safe.directory /app