-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (27 loc) · 891 Bytes
/
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
35
36
37
38
39
FROM python:3.9
ENV PYTHONUNBUFFERED 1
ENV POETRY_HOME=/opt/poetry, POETRY_VIRTUALENVS_CREATE=false, POETRY_VERSION=1.8.2
RUN apt-get update && apt-get install -y \
libboost-all-dev \
libcairo2 \
libcairo2-dev \
graphviz \
libffi-dev \
libpqxx-dev \
rabbitmq-server \
sphinxsearch \
imagemagick \
libmagickcore-dev \
libmagickwand-dev
# Install poetry
RUN python3 -m pip install --upgrade pip && \
curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="${POETRY_HOME}/bin:${PATH}"
WORKDIR /app
COPY sample-configs/k8s/sphinx /app/sphinx/
COPY pyproject.toml poetry.lock README.md /app/
RUN poetry install --sync --no-root
COPY /src /app/src
RUN poetry install --only-root
WORKDIR /app/src
CMD ["poetry", "run", "gunicorn", "--timeout", "300", "--limit-request-line", "8190", "--bind", "0.0.0.0:8000", "application:app"]