From ab37fe1eee32a874090574dbe4053b0b53ddc4db Mon Sep 17 00:00:00 2001 From: vanten-s Date: Sat, 12 Aug 2023 22:31:24 +0200 Subject: [PATCH] Running my website in docker --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile 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", "&"] +