mirror of
https://github.com/tanrax/org-social-static-preview
synced 2026-01-08 06:13:35 +01:00
18 lines
490 B
Docker
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"]
|