add quick and dirty docker compose and auto update

This commit is contained in:
PATRICK-WORK\Patrick 2025-04-12 10:36:15 +02:00
parent ec63baf7b0
commit 5c081e3e8a
6 changed files with 54 additions and 7 deletions

16
.dockerignore Normal file
View file

@ -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

5
.github/pull.yml vendored Normal file
View file

@ -0,0 +1,5 @@
version: "1"
rules:
- base: main
upstream: fmhy:main
mergeMethod: merge

20
Dockerfile Normal file
View file

@ -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" ]

6
docker-compose.yml Normal file
View file

@ -0,0 +1,6 @@
services:
fmhy:
container_name: fmhy
image: patlukat/fmhy
ports:
- "4173:4173"

View file

@ -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,

View file

@ -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