Files
opencode-dispatch/Dockerfile
T
renovate 2aa145679e
Docker Build and Push / build (pull_request) Successful in 38s
Pin dependencies
2026-06-09 14:00:48 +00:00

17 lines
367 B
Docker

FROM python:3.14-slim@sha256:c845af9399020c7e562969a13689e929074a10fd057acd1b1fad06a2fb068e97
WORKDIR /app
# Install dependencies first (layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy bot
COPY bot.py .
# Non-root user
RUN useradd --no-create-home --shell /bin/false botuser
USER botuser
CMD ["python", "bot.py"]