-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (27 loc) · 945 Bytes
/
Dockerfile
File metadata and controls
39 lines (27 loc) · 945 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
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /opt/incidentrelay
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
build-essential \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /opt/incidentrelay/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir gunicorn psycopg2-binary
COPY . /opt/incidentrelay
RUN mkdir -p \
/etc/incidentrelay \
/var/lib/incidentrelay \
/var/log/incidentrelay \
/usr/local/lib/incidentrelay/voice_providers
COPY docker/incidentrelay.docker.conf /etc/incidentrelay/incidentrelay.conf
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENV INCEDENTRELAY_CONFIG_FILE=/etc/incidentrelay/incidentrelay.conf
ENV INCIDENTRELAY_SERVICE=web
EXPOSE 8080
ENTRYPOINT ["/entrypoint.sh"]