Running my website in docker

This commit is contained in:
vanten-s 2023-08-12 22:31:24 +02:00
commit ab37fe1eee
Signed by: vanten-s
GPG key ID: DE3060396884D3F2

15
Dockerfile Normal file
View file

@ -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", "&"]