commit 669c649c756c091ebbb53cbb7aeaa9dff840a149 Author: Victor Chapaev Date: Sun Mar 16 14:40:39 2025 +0300 Публикация репозитория diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..df52a4e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM mydocker.ru/alpine-dev AS builder +RUN apk add --no-cache doxygen python3 py3-pip plantuml && \ + git clone -b v3.11.3 https://gitfox.ru/lib/json.git && \ + cd json && \ + cd /src/json/docs/mkdocs && \ + make install_venv build + +FROM mydocker.ru/unit +COPY --from=builder /src/json/docs/mkdocs/site /www +ADD ./config/ /app/config/ +EXPOSE 8080/tcp diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..df9f2a1 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker build . -t gitfox.ru/victor/json-cpp diff --git a/config/config.json b/config/config.json new file mode 100644 index 0000000..48b3bc9 --- /dev/null +++ b/config/config.json @@ -0,0 +1,15 @@ +{ + "listeners": { + "*:8080": { + "pass": "routes" + } + }, + + "routes": [ + { + "action": { + "share": "/www$uri" + } + } + ] +} diff --git a/push.sh b/push.sh new file mode 100755 index 0000000..4957400 --- /dev/null +++ b/push.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker push gitfox.ru/victor/json-cpp diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..b348c5e --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker run -ti --rm -p 8080:8080 gitfox.ru/victor/json-cpp $*