fediverse-admin-bot/Dockerfile

13 lines
356 B
Docker
Raw Permalink Normal View History

FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y python3-pip
WORKDIR /app
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
COPY bot.py /app/
CMD ["python", "bot.py"]
# DONT FORGET TO MOUNT BOT.LOG, CONFIG.INI, AND .LASTFETCH TO /APP OR /APP/DATA!!!