2024-07-14 16:07:00 +00:00
|
|
|
FROM python:3.12
|
2023-10-23 12:49:46 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2024-07-14 18:03:29 +00:00
|
|
|
RUN apt-get update mariadb-client && \
|
2024-07-14 16:07:00 +00:00
|
|
|
apt-get install -y locales && \
|
2023-10-23 12:49:46 +00:00
|
|
|
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
|
|
|
dpkg-reconfigure locales
|
|
|
|
|
2024-07-14 16:07:00 +00:00
|
|
|
COPY pyproject.toml poetry.lock ./
|
|
|
|
RUN pip install poetry && \
|
|
|
|
poetry config virtualenvs.create false && \
|
|
|
|
poetry install --no-interaction --no-ansi
|
2023-10-23 12:49:46 +00:00
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
2024-07-14 16:07:00 +00:00
|
|
|
CMD [ "poetry", "run", "python", "./Luminara.py" ]
|