17 lines
320 B
Docker
17 lines
320 B
Docker
# Dockerfile for Reddit Test Posts Bot
|
|
FROM python:3.11-slim
|
|
|
|
# Create a non-root user for running the bot
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY bot.py .
|
|
COPY config.py .
|
|
# Create DB directory
|
|
RUN mkdir -p /app/DB
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
CMD ["python", "bot.py"]
|