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

RUN apt update
RUN apt install locales -y
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
RUN sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen
RUN locale-gen

WORKDIR /app
COPY pyproject.toml .
RUN pip install pip -U
RUN pip install .

COPY . .

ARG CACHEBUST=1
RUN alembic upgrade head
CMD ["python", "main.py"]