~bronikowski/elevencal

ref: e6f1f6dc91fe0c886fac5facab563df4dfa20d9e elevencal/Dockerfile -rw-r--r-- 313 bytes
e6f1f6dcEmil Oppeln-Bronikowski Dockerize 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
FROM python:3.7-bullseye
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"]
EXPOSE 3000