~bronikowski/elevencal

e6f1f6dc91fe0c886fac5facab563df4dfa20d9e — Emil Oppeln-Bronikowski 2 months ago f22f620
Dockerize
1 files changed, 9 insertions(+), 0 deletions(-)

A Dockerfile
A Dockerfile => Dockerfile +9 -0
@@ 0,0 1,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