fix main file. adapt dockerfile.

This commit is contained in:
Enzo Nunes
2025-12-02 23:15:40 +00:00
parent 06d3098940
commit 1cac1d2e66
2 changed files with 104 additions and 94 deletions

View File

@@ -2,16 +2,20 @@ FROM python:3.14-slim
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends cloc; \
apt-get dist-clean
apt-get install -y --no-install-recommends cloc git; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install --no-cache-dir discord asyncio requests
RUN pip install --no-cache-dir discord.py requests
COPY main.py .
COPY PICable.py .
RUN useradd -m appuser
RUN useradd -m appuser && \
mkdir -p /temp && \
chown appuser:appuser /temp
USER appuser
CMD ["python", "main.py"]