~bronikowski/elevencal

bd0a7c9025e49df352228e76ab363c8a4b674390 — Emil Oppeln-Bronikowski 2 months ago e6f1f6d master
Docker publisher
2 files changed, 9 insertions(+), 3 deletions(-)

M Dockerfile
A docker_publish.sh
M Dockerfile => Dockerfile +3 -3
@@ 3,7 3,7 @@ WORKDIR /app
COPY . .
RUN apt update && apt dist-upgrade && apt -y install webfs cron && apt clean 
RUN pip3 install -r requirements.txt
RUN python3 ./__main__.py
RUN echo "0 *  * * * cd /app && python3 ./__main__.py" | crontab -
CMD ["webfsd", "-F", "-r", ".", "-p", "3000"]
RUN /app/docker_publish.sh
RUN echo "0 *  * * * /app/docker_publish.sh" | crontab -
CMD ["webfsd", "-F", "-f", "index.html", "-r", "./output", "-p", "3000"]
EXPOSE 3000

A docker_publish.sh => docker_publish.sh +6 -0
@@ 0,0 1,6 @@
#!/bin/bash
cd /app
mkdir -p /app/output
python3 __main__.py
mv *.ics /app/output
cp page/* /app/output