Публикация репозитория

This commit is contained in:
Victor Chapaev 2025-03-16 14:40:39 +03:00
commit 669c649c75
Signed by: victor
GPG Key ID: 05ACE065D1EC5CA4
5 changed files with 35 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -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

3
build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker build . -t gitfox.ru/victor/json-cpp

15
config/config.json Normal file
View File

@ -0,0 +1,15 @@
{
"listeners": {
"*:8080": {
"pass": "routes"
}
},
"routes": [
{
"action": {
"share": "/www$uri"
}
}
]
}

3
push.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker push gitfox.ru/victor/json-cpp

3
run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker run -ti --rm -p 8080:8080 gitfox.ru/victor/json-cpp $*