blob: de3b52e3e9fb1bbe71934a5e60c3bca247884699 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
FROM python:slim
RUN apt update
RUN apt install -y gcc git
ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100
RUN pip install poetry
WORKDIR /metricity
COPY poetry.lock pyproject.toml /metricity/
RUN poetry config virtualenvs.create false && poetry install
COPY . /metricity
CMD ["sh", "-c", "alembic upgrade head && poetry run start"]
|