-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 1017 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 1017 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
FROM python:3.9.7-slim-bullseye
ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VERSION=1.1.11 \
POETRY_VIRTUALENVS_CREATE=0
RUN apt-get update --fix-missing
RUN apt-get install -y g++ libgdal-dev libpq-dev libgeos-dev libproj-dev openjdk-17-jre vim wait-for-it
RUN apt-get install -y curl git && pip install --upgrade pip
WORKDIR /app
COPY ./requirements.txt ./requirements.txt
COPY ./requirements_dev.txt ./requirements_dev.txt
RUN pip install -r requirements.txt
RUN pip install -r requirements_dev.txt
COPY ./tests ./tests
COPY ./src ./
COPY ./entrypoint.sh ./entrypoint.sh
COPY ./initdb.py ./initdb.py
COPY ./deployment.yml ./deployment.yml
COPY ./setup.cfg ./setup.cfg
COPY ./setup.py ./setup.py
RUN python setup.py compile_catalog --domain climsoft_messages --directory climsoft_api/locale
ENTRYPOINT [ "/bin/sh", "entrypoint.sh" ]