first commit
This commit is contained in:
18
bot/Dockerfile
Normal file
18
bot/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PIP_NO_CACHE_DIR=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN useradd --create-home --shell /usr/sbin/nologin appuser
|
||||
|
||||
COPY bot/requirements.txt /app/requirements.txt
|
||||
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install -r /app/requirements.txt
|
||||
|
||||
COPY --chown=appuser:appuser ./bot /app
|
||||
|
||||
USER appuser
|
||||
Reference in New Issue
Block a user