1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:23:12 +00:00
Lumi/Dockerfile
wlinator d4d9a33d6a chore: Update Dockerfile environment variables
The Dockerfile was updated to set the environment variables `LANG` and `LC_ALL` to `en_US.UTF-8`. This change ensures consistent encoding settings for the container.
2024-07-20 07:44:11 -04:00

24 lines
No EOL
668 B
Docker

FROM python:3.12-slim-bookworm
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /usr/src/app
RUN apt-get update && \
apt-get install -y --no-install-recommends locales mariadb-client && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure locales && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY pyproject.toml poetry.lock ./
RUN pip install --no-cache-dir poetry && \
poetry config virtualenvs.create false && \
poetry install --no-interaction --no-ansi --no-dev && \
pip cache purge
COPY . .
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
CMD [ "poetry", "run", "python", "./Luminara.py" ]