try again with Procfile and release worker

This commit is contained in:
Florian du Garage Num 2024-01-04 21:03:00 +01:00
parent 6f05dd748b
commit c96e90c980
3 changed files with 3 additions and 16 deletions

1
.buildpacks Normal file
View File

@ -0,0 +1 @@
heroku/python

View File

@ -1,16 +0,0 @@
FROM python:3.11-slim
WORKDIR /app
COPY . /app
RUN apt-get update && \
apt-get install -y git && \
git config --global --add safe.directory /app
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN mkdocs build
CMD ["python", "-m", "http.server", "--directory", "public", "5000"]

2
Procfile Normal file
View File

@ -0,0 +1,2 @@
release: git config --global --add safe.directory /app
web: mkdir public && mkdocs build && python -m http.server --directory public 5000