fix docker build

This commit is contained in:
aya committed 2026-02-25 02:23:58 +01:00
1 parent de0480de5b
commit bf4b9e02f1
12 files changed
+8 -2

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
.woodpecker.yml
docker
+2 -1
View File
@@ -3,7 +3,8 @@ steps:
image: docker:dind image: docker:dind
environment: environment:
COMPOSE_PROJECT_NAME: ${CI_REPO_OWNER,,}-${CI_REPO_NAME,,}-${CI_COMMIT_BRANCH//\//-} COMPOSE_PROJECT_NAME: ${CI_REPO_OWNER,,}-${CI_REPO_NAME,,}-${CI_COMMIT_BRANCH//\//-}
SERVICE_3000_TAGS: urlprefix-librodrome.org/* LETSENCRYPT_HOST: librodrome.org
SERVICE_3000_TAGS: urlprefix-librodrome.org:443/*
NUXT_PUBLIC_SITE_URL: https://librodrome.org NUXT_PUBLIC_SITE_URL: https://librodrome.org
NUXT_ADMIN_PASSWORD: NUXT_ADMIN_PASSWORD:
from_secret: NUXT_ADMIN_PASSWORD from_secret: NUXT_ADMIN_PASSWORD
+3
View File
@@ -26,6 +26,9 @@ ENV PORT=${PORT}
ENV NODE_ENV=production ENV NODE_ENV=production
COPY --from=build /src/.output /src/.output COPY --from=build /src/.output /src/.output
COPY --from=build /src/site /src/site
RUN apt-get update && apt-get -fy install curl && rm -rf /var/cache/apt/*
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:${PORT}/api/health || exit 1 CMD curl -f http://localhost:${PORT}/api/health || exit 1
+1 -1
View File
@@ -2,7 +2,7 @@ import { readFile, writeFile } from 'node:fs/promises'
import { join } from 'node:path' import { join } from 'node:path'
import yaml from 'yaml' import yaml from 'yaml'
const dataDir = join(process.cwd(), 'data') const dataDir = join(process.cwd(), 'site')
const cache = new Map<string, { data: unknown; mtime: number }>() const cache = new Map<string, { data: unknown; mtime: number }>()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.