forked from rcpch/rcpch-audit-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (25 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Base Docker image Official Python 3.10
FROM python:3.10
# Set 'build-time' environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Setup GDAL + PILLOW required for CAPTCHA
RUN apt-get update &&\
apt-get install -y binutils libproj-dev gdal-bin libgdal-dev python3-gdal &&\
apt-get install -y libz-dev libjpeg-dev libfreetype6-dev
# Extra packages required for Material for MkDocs plugins (dependency for git and pdf plugins)
RUN apt install -y git python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0
# Add requirements
COPY requirements/requirements.txt /app/requirements/requirements.txt
# Set working directory for requirements installation
WORKDIR /app/requirements/
# Run installation of requirements
RUN pip install --upgrade pip
RUN pip install -r /app/requirements/requirements.txt
# Set safe working directory for git
RUN git config --global --add safe.directory /app
# 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/