forked from LPK/librodrome
fix docker build
This commit is contained in:
1 parent
de0480de5b
commit
bf4b9e02f1
12 files changed
+8
-2
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
.woodpecker.yml
|
||||||
|
docker
|
||||||
+2
-1
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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.
File renamed without changes.
Reference in new issue
Block a user