Skip to content

Commit

Permalink
Adds Dockerfile in preparation for Dockerisation of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pacharanero committed Dec 15, 2023
1 parent cad75f8 commit cc4290f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
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/

0 comments on commit cc4290f

Please sign in to comment.