From 83ad25e009cf757cc9dc85ee869a59a91736bb36 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 31 Jan 2025 12:24:01 -0600 Subject: [PATCH] Add Docker image --- .dockerignore | 7 +++++++ Dockerfile | 13 +++++++++++++ docker-compose.yaml | 11 +++++++++++ 3 files changed, 31 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..d55549c41 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +site/ +venv/ +.venv +.cache +.git/ +.github/ +Dockerfile \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..9ab641879 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.12.5-alpine3.20 +COPY ./ /src/ +WORKDIR /src/ +RUN pip install --upgrade pip +RUN pip install mkdocs +RUN pip install mkdocs-material +RUN apk update +RUN apk add git +RUN pip install -r requirements.txt +RUN pip install mkdocs-glightbox +RUN pip install $(mkdocs get-deps) +EXPOSE 8080 +CMD ["mkdocs", "serve", "-a", "0.0.0.0:8080"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 000000000..b33bade3c --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,11 @@ +name: V1-docs +services: + web: + container_name: v1engineeringinc-docs + build: + context: ./ + dockerfile: Dockerfile + volumes: + - ./:/src/:rw + ports: + - "8080:8080" \ No newline at end of file