services/website/Dockerfile
Palo palo e7063b5fd5 Removed the source of the website as a submodule of website, since again
it introduced weird bugs because of docker: now it just clones the repo
when building
2024-12-05 03:19:23 +01:00

17 lines
440 B
Docker

FROM python:latest
WORKDIR /usr/local/app
# Install the application dependencies
RUN pip install --no-cache-dir pelican icalendar markdown
# Clone the website source
RUN git clone https://git.abbiamoundominio.org/unit/website-pelican/ /usr/local/app/source
VOLUME ["/usr/local/app/output"]
# Execute the execute.sh file
COPY execute.sh /usr/local/app/execute.sh
RUN chmod +x /usr/local/app/execute.sh
CMD ["/usr/local/app/execute.sh"]