Running my website in docker
This commit is contained in:
commit
ab37fe1eee
15
Dockerfile
Normal file
15
Dockerfile
Normal 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", "&"]
|
||||||
|
|
Loading…
Reference in a new issue