TheOrb/Dockerfile

17 lines
527 B
Docker

FROM python:3.12-alpine
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
RUN adduser -D -u 1001 -g "" -h /app archive-status
RUN mkdir -p /app/state && chown -R 1001:1001 /app
COPY --chown=1001:1001 archive_bot /app/archive_bot
COPY --chown=1001:1001 status_bot.py /app/status_bot.py
COPY --chown=1001:1001 dashboard.html /app/dashboard.html
COPY --chown=1001:1001 services.example.json /app/services.json
USER 1001:1001
CMD ["python", "/app/status_bot.py"]