-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 832 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 832 Bytes
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
# This Dockerfile is designed to run a Geant Argus for demo purposes. Together with the
# accompanying docker-compose.yml it contains all that's needed to showcase Geant Argus.
# For additional instructions, see the README
FROM python:3.10-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends tini \
build-essential libpq-dev libffi-dev libssl-dev postgresql-client
RUN mkdir -p /argus
WORKDIR /argus
COPY requirements.txt /argus
RUN pip install -r requirements.txt
COPY . /argus
RUN pip install -e .
COPY ./demo /argus
RUN mv /argus/settings.py /argus/src/geant_argus/settings/demo.py
ENV PYTHONPATH=/argus/src
ENV PYTHONDONTWRITEBYTECODE=1
ENV DJANGO_SETTINGS_MODULE='geant_argus.settings.demo'
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["/argus/docker-entrypoint.sh"]