-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile and vercel.json to deploy on Vercel (#49)
- Loading branch information
1 parent
4527bc2
commit 3de9490
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Gebruik een officiële Python runtime als basisimage | ||
FROM python:3.12-slim | ||
|
||
# Stel de werkdirectory in | ||
WORKDIR /app | ||
|
||
# Installeer curl en andere noodzakelijke pakketten | ||
RUN apt-get update && apt-get install -y curl git | ||
|
||
# Installeer Poetry | ||
RUN curl -sSL https://install.python-poetry.org | python3 - | ||
|
||
# Voeg Poetry toe aan de PATH | ||
ENV PATH="/root/.local/bin:$PATH" | ||
|
||
# Kopieer de projectbestanden naar de werkdirectory | ||
COPY . . | ||
|
||
# Installeer de dependencies met Poetry | ||
RUN poetry install | ||
|
||
# Build de MkDocs site | ||
RUN poetry run mkdocs build | ||
|
||
# Geef de build directory op als Vercel output | ||
CMD ["cp", "-r", "site", "/vercel/output"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": 2, | ||
"builds": [ | ||
{ | ||
"src": "Dockerfile", | ||
"use": "@vercel/docker" | ||
} | ||
], | ||
"routes": [ | ||
{ | ||
"src": "/(.*)", | ||
"dest": "/site/$1" | ||
} | ||
] | ||
} |