diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f08be6c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +# Base Docker image Official Python 3.10 +FROM python:3.11 + +# Set 'build-time' environment variables +ENV PYTHONDONTWRITEBYTECODE 1 +ENV PYTHONUNBUFFERED 1 + +# Extra packages required for Material for MkDocs plugins (dependency for git and pdf plugins) +RUN apt-get update \ + apt install -y git python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0 + +# Add requirements +COPY requirements.txt /app/requirements.txt + +# Set working directory for requirements installation +WORKDIR /app/ + +# Run installation of requirements +RUN pip install --upgrade pip +RUN pip install -r /app/requirements.txt + +# Set working directory back to main app +WORKDIR /app/ + +# Copy application code into image +# (Excludes any files/dirs matched by patterns in .dockerignore) +COPY . /app/ +