commit ab37fe1eee32a874090574dbe4053b0b53ddc4db Author: vanten-s Date: Sat Aug 12 22:31:24 2023 +0200 Running my website in docker diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2601e9f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1 + +FROM python:3.11-alpine + +# Set working dir +WORKDIR /code + +RUN apk add git +RUN git clone https://forgejo.vanten-s.com/vanten-s/vanten-s.com . +RUN git submodule update --init + +RUN pip3 install -r requirements.txt + +CMD ["python3", "main.py", "&"] +