Актуализация и мелочи
Some checks failed
Build images / build (push) Failing after 13m56s

This commit is contained in:
2026-01-02 23:46:04 +08:00
parent c1af326438
commit 7d61aadc5d
3 changed files with 13 additions and 13 deletions

View File

@@ -1,10 +1,10 @@
FROM squidfunk/mkdocs-material AS m3u-su-docs-builder
FROM squidfunk/mkdocs-material AS builder
COPY . /docs
RUN mkdocs build
FROM nginx:alpine AS m3u-su-docs
FROM nginx:alpine AS iptv-docs
LABEL org.opencontainers.image.authors="Anthony Axenov <anthonyaxenov@gmail.com>"
COPY --from=m3u-su-docs-builder /docs/site /usr/share/nginx/html
COPY --from=builder /docs/site /usr/share/nginx/html
WORKDIR /usr/share/nginx/html
USER root
EXPOSE 80

View File

@@ -8,11 +8,11 @@ live:
--tty \
--publish 3000:8000 \
--volume ${PWD}:/docs \
--name m3u-su-docs-builder \
--name iptv-docs-dev \
squidfunk/mkdocs-material:9.6.20
## image: Build local static site
build:
site:
@echo "Wait until mkdocs finish"
@docker run \
--pull always \
@@ -20,19 +20,19 @@ build:
--interactive \
--tty \
--volume ${PWD}:/docs \
--name m3u-su-docs-builder \
--name iptv-docs-dev \
squidfunk/mkdocs-material:9.6.20 build
## image: Build docker image
image:
@docker build \
--tag m3u-su-docs:latest \
--tag git.axenov.dev/iptv/m3u-su-docs:latest \
--tag iptv-docs:latest \
--tag git.axenov.dev/iptv/iptv-docs:latest \
.
## push: Push docker image to registry
push:
@docker push git.axenov.dev/iptv/m3u-su-docs:latest
@docker push git.axenov.dev/iptv/iptv-docs:latest
## run: Run docker image (localhost:3001)
run:
@@ -40,8 +40,8 @@ run:
@docker run \
--rm \
--publish 3001:80 \
--name m3u-su-docs \
git.axenov.dev/iptv/m3u-su-docs:latest
--name iptv-docs \
git.axenov.dev/iptv/iptv-docs:latest
## help: Show this message and exit
help: Makefile

View File

@@ -81,7 +81,7 @@ make live
## Генерация статического сайта
```
make build
make site
```
Генерирует статические файлы, которую можно версионировать, хранить,деплоить отдельно или просматривать на ПК через браузер.
@@ -96,7 +96,7 @@ make image
Собирает docker-образ на основе nginx, генерируя перед этим статический сайт.
Запустить контейнер из этого образа можно командой:
Запустить контейнер из этого образа по адресу [localhost:3001](http://localhost:3001) можно командой:
```
make run