summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: aeca5ebb6bf4c6022d6001a69b6bb44bc1c048c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.10

ENV PYTHONDONTWRITEBYTECODE 1 \
    PYTHONUNBUFFERED 1 \
    PIP_DISABLE_PIP_VERSION_CHECK 1

RUN pip install poetry

WORKDIR /machinis

COPY poetry.lock pyproject.toml /machinis/

RUN poetry config virtualenvs.create false \
    && poetry install --no-dev --no-interaction --no-ansi

COPY . /machinis

ENTRYPOINT ["poetry", "run", "python", "-m", "machinis"]