From 5c081e3e8aacbbd0b68d9bfaf45aa60e5266da78 Mon Sep 17 00:00:00 2001 From: "PATRICK-WORK\\Patrick" Date: Sat, 12 Apr 2025 10:36:15 +0200 Subject: [PATCH] add quick and dirty docker compose and auto update --- .dockerignore | 16 ++++++++++++++++ .github/pull.yml | 5 +++++ Dockerfile | 20 ++++++++++++++++++++ docker-compose.yml | 6 ++++++ docs/.vitepress/constants.ts | 6 +++--- docs/index.md | 8 ++++---- 6 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 .dockerignore create mode 100644 .github/pull.yml create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..90e775873 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,16 @@ +.git +.gitignore +**/.vitepress/dist +**/.vitepress/cache +node_modules +*.log* +.nitro +.cache +.output +.env +dist +.eslintcache +docs/.vitepress/.temp +result +*.md +docs/.vitepress/dist \ No newline at end of file diff --git a/.github/pull.yml b/.github/pull.yml new file mode 100644 index 000000000..800d77255 --- /dev/null +++ b/.github/pull.yml @@ -0,0 +1,5 @@ +version: "1" +rules: + - base: main + upstream: fmhy:main + mergeMethod: merge diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..93f650e9b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:21.7.3-slim AS base +ENV PNPM_HOME="/pnpm" +ENV PATH="$PNPM_HOME:$PATH" +RUN corepack enable +COPY . /app +WORKDIR /app + +FROM base AS prod-deps +RUN pnpm install + +FROM base AS build +RUN pnpm install +RUN pnpm docs:build + +FROM base +COPY --from=prod-deps /app/node_modules /app/node_modules +COPY --from=build /app/docs/.vitepress/dist /app/docs/.vitepress/dist + +EXPOSE 4173 +CMD [ "pnpm", "docs:preview" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..65f5613d0 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +services: + fmhy: + container_name: fmhy + image: patlukat/fmhy + ports: + - "4173:4173" \ No newline at end of file diff --git a/docs/.vitepress/constants.ts b/docs/.vitepress/constants.ts index 24d761014..f365676a6 100644 --- a/docs/.vitepress/constants.ts +++ b/docs/.vitepress/constants.ts @@ -21,9 +21,9 @@ import { transform, transformGuide } from './transformer' // @unocss-include export const meta = { - name: 'freemediaheckyeah', - description: 'The largest collection of free stuff on the internet!', - hostname: 'https://fmhy.net', + name: 'Kugelstadt', + description: 'Copy of fmhy.net!', + hostname: 'https://fmhy.kugelstadt.cc', keywords: ['stream', 'movies', 'gaming', 'reading', 'anime'], build: { api: true, diff --git a/docs/index.md b/docs/index.md index 17c0a9eb8..59185045a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,11 +1,11 @@ --- -title: Welcome +title: Kugelstadt layout: home -description: The largest collection of free stuff on the internet! +description: Copy of fmhy.net! hero: - name: freemediaheckyeah - tagline: The largest collection of free stuff on the internet! + name: Kugelstadt freemediaheckyeah + tagline: Copy of fmhy.net! announcement: title: April Updates 🌼 link: /posts/april-2025