fix main file. adapt dockerfile.
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user