This commit is contained in:
2026-07-01 20:58:51 +05:00
parent ae946d295a
commit 57ae0784ec
2 changed files with 3 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
FROM node:20-alpine
RUN apk add --no-cache git
WORKDIR /app
RUN git https://git.dadehard.ru/kalugin66/gia-gve-certificates.git .
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]

View File

@@ -1,14 +1,7 @@
#!/bin/sh
set -e
mkdir -p /app/data
if [ -d /app/.git ]; then
cd /app
git pull
else
mkdir -p /tmp/app-tmp
rm -rf /tmp/app-tmp
git clone "$GIT_REPO_URL" /tmp/app-tmp
cp -a /tmp/app-tmp/. /app/
fi
npm i
exec "$@"