-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
FROM python:3.8.10-slim-buster | ||
# Builder | ||
FROM python:3.12-slim-bullseye as build-stage | ||
|
||
LABEL maintainer="Just van den Broecke <[email protected]>" | ||
|
||
RUN pip install mkdocs | ||
|
||
COPY ./docs/ /docs/ | ||
|
||
WORKDIR /docs/ | ||
|
||
EXPOSE 8000 | ||
RUN cd /docs && pip install mkdocs && mkdir /var/www && mkdocs build -d /var/www | ||
|
||
CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"] | ||
# Deployer | ||
FROM nginx:stable-alpine as production-stage | ||
LABEL maintainer="Just van den Broecke <[email protected]>" | ||
COPY --from=build-stage /var/www /usr/share/nginx/html | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
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
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
version: '3.3' | ||
|
||
services: | ||
proxy: | ||
image: traefik:v2.9.9 | ||
image: traefik:v2.11.0 | ||
|
||
container_name: traefik | ||
|
||
|