mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
🐛 fix(ChatProcess.py): compare message content instead of message id to determine if original message should be added to messages
The TZ environment variable was not being used in the Dockerfile, so it was removed to simplify the file. In the ChatProcess.py file, the comparison of message ids was replaced with a comparison of message content to determine if the original message should be added to the messages list. This ensures that the original message is included in the list even if its id changes.
16 lines
561 B
Docker
16 lines
561 B
Docker
# For more information, please refer to https://aka.ms/vscode-docker-python
|
|
FROM python:3.11-bookworm
|
|
# Turns off buffering for easier container logging
|
|
ENV PYTHONUNBUFFERED=1
|
|
# Turns off pyc files
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
|
# Install pip requirements
|
|
WORKDIR /Botator
|
|
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /Botator
|
|
COPY requirements.txt .
|
|
RUN pip install -r requirements.txt
|
|
COPY . .
|
|
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
|
|
USER appuser
|
|
CMD ["python", "main.py"] |