summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: ba0914513a6a131754beb1fdb26103799420a3c9 (plain)
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
FROM python:3.14-slim

WORKDIR /app

ENV PYTHONUNBUFFERED=1

ENV POETRY_VERSION=2.3.2 \
    POETRY_NO_INTERACTION=1 \
    POETRY_VIRTUALENVS_CREATE=false

RUN apt-get update \
 && apt-get install -y \
    curl \
    build-essential \
    libffi-dev \
 && rm -rf /var/lib/apt/lists/*

RUN curl -sSL https://install.python-poetry.org | python3

ENV PATH="/root/.local/bin:$PATH"

COPY pyproject.toml poetry.lock* ./

RUN poetry install --no-root --only main

COPY . .

RUN chmod +x start.sh

EXPOSE 8000

CMD ["./start.sh"]