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"]