Files
org-social-static-preview/Dockerfile
Andros Fenollosa f1cf28fe6c Added entrypoint
2025-09-15 09:04:43 +02:00

18 lines
490 B
Docker

FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY social.org .
COPY org_social_preview_generator.py .
COPY template.html .
COPY entrypoint.sh .
# Make entrypoint executable
RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["python", "org_social_preview_generator.py", "--social-file", "/app/social.org", "--preview-dir", "/app/preview", "--template-dir", "/app", "--template-name", "template.html"]