forked from neo4j-examples/paradise-papers-django
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (18 loc) · 827 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.12
MAINTAINER [email protected]
# Directories for the source code
RUN mkdir -p /usr/src/paradise_papers_search
# Install OS dependencies
RUN apt update && \
apt install -y apt-transport-https ca-certificates curl software-properties-common && \
curl -fsSL https://debian.neo4j.com/neotechnology.gpg.key | apt-key add - && \
echo "deb https://debian.neo4j.com stable 4.4" > /etc/apt/sources.list.d/neo4j.list && \
apt update && \
apt install -y neo4j libgeos-dev
# Next, install the Python modules
ADD requirements.txt /usr/src/requirements.txt
RUN pip install -r /usr/src/requirements.txt
WORKDIR /usr/src/paradise_papers_search
ENV PYTHONPATH=/usr/src/paradise_papers_search
ENV DJANGO_SETTINGS_MODULE='paradise_papers_search.settings.dev'
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]