From c96e90c980a0e32e223b564b44f4a7f15c0ffb50 Mon Sep 17 00:00:00 2001 From: Florian du Garage Num Date: Thu, 4 Jan 2024 21:03:00 +0100 Subject: [PATCH] try again with Procfile and release worker --- .buildpacks | 1 + Dockerfile | 16 ---------------- Procfile | 2 ++ 3 files changed, 3 insertions(+), 16 deletions(-) create mode 100644 .buildpacks delete mode 100644 Dockerfile create mode 100644 Procfile diff --git a/.buildpacks b/.buildpacks new file mode 100644 index 00000000..35432653 --- /dev/null +++ b/.buildpacks @@ -0,0 +1 @@ +heroku/python diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index d6147afa..00000000 --- a/Dockerfile +++ /dev/null @@ -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"] diff --git a/Procfile b/Procfile new file mode 100644 index 00000000..cd5ff43c --- /dev/null +++ b/Procfile @@ -0,0 +1,2 @@ +release: git config --global --add safe.directory /app +web: mkdir public && mkdocs build && python -m http.server --directory public 5000