Added cloc to Dockerfile
This commit is contained in:
@@ -1,15 +1,17 @@
|
|||||||
FROM python:3.14-slim
|
FROM python:3.14-slim
|
||||||
|
|
||||||
# Copy your code
|
RUN set -eux; \
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install -y --no-install-recommends cloc; \
|
||||||
|
apt-get dist-clean
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN pip install --no-cache-dir discord asyncio requests
|
RUN pip install --no-cache-dir discord asyncio requests
|
||||||
|
|
||||||
COPY main.py .
|
COPY main.py .
|
||||||
COPY PICable.py .
|
COPY PICable.py .
|
||||||
|
|
||||||
# Drop privileges (optional but good practice)
|
|
||||||
RUN useradd -m appuser
|
RUN useradd -m appuser
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
||||||
# Start the scheduler script
|
|
||||||
CMD ["python", "main.py"]
|
CMD ["python", "main.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user