aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 4a1ddadb6957d839fb49d8108fd78dd44a9b7eeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 requirements.txt .
RUN pip install pip -U
RUN pip install -r requirements.txt

COPY . .

RUN alembic upgrade head
CMD ["python", "main.py"]