diff --git a/.gitea/workflows/master.yml b/.gitea/workflows/master.yml index cffbf4b..e68f328 100644 --- a/.gitea/workflows/master.yml +++ b/.gitea/workflows/master.yml @@ -147,7 +147,7 @@ jobs: shell: bash run: | set -euo pipefail - docker build --pull --platform linux/amd64 --label "org.opencontainers.image.revision=${REVIEWED_SOURCE_COMMIT}" --label "me.videoreg.export-sha256=${REVIEWED_EXPORT_SHA}" --label "me.videoreg.delivery-commit=${GITHUB_SHA}" --label "me.videoreg.scope=reviewed-corpus-only" --tag "${IMAGE}" . + docker build --pull --platform linux/amd64 --build-arg BASE_IMAGE=git.pryanik.synology.me/huncode/videoreg.ru:9b5b080e6019@sha256:2fb63f2666d7c57643328aae1e76cdc5c3e498f704e007a7c57f2fecb033053e --label "org.opencontainers.image.revision=${REVIEWED_SOURCE_COMMIT}" --label "me.videoreg.export-sha256=${REVIEWED_EXPORT_SHA}" --label "me.videoreg.delivery-commit=${GITHUB_SHA}" --label "me.videoreg.scope=reviewed-corpus-only" --tag "${IMAGE}" . test "$(docker image inspect "$IMAGE" --format '{{.Architecture}}')" = amd64 docker run --rm --entrypoint nginx "$IMAGE" -t cid=$(docker create "$IMAGE") diff --git a/Dockerfile b/Dockerfile index f29cc03..7f5e6d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM nginx:1.28-alpine +ARG BASE_IMAGE=nginx:1.28-alpine +FROM ${BASE_IMAGE} RUN rm -rf /usr/share/nginx/html COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf COPY deploy/legacy-map.conf /etc/nginx/conf.d/00-videoreg-legacy.conf diff --git a/deploy/docker/Dockerfile.web b/deploy/docker/Dockerfile.web index 125df76..1a3f63f 100644 --- a/deploy/docker/Dockerfile.web +++ b/deploy/docker/Dockerfile.web @@ -7,7 +7,8 @@ COPY tsconfig.json vitest.config.ts ./ COPY web-front web-front COPY ingestion ingestion RUN npm run build -FROM nginx:1.28-alpine +ARG BASE_IMAGE=nginx:1.28-alpine +FROM ${BASE_IMAGE} RUN rm -rf /usr/share/nginx/html COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf COPY deploy/legacy-map.conf /etc/nginx/conf.d/00-videoreg-legacy.conf