-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Dockerfile in preparation for Dockerisation of documentation
- Loading branch information
1 parent
cad75f8
commit cc4290f
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ | ||
|