mirror of
https://github.com/fmhy/edit.git
synced 2025-08-03 09:42:14 +10:00
add quick and dirty docker compose and auto update
This commit is contained in:
parent
ec63baf7b0
commit
5c081e3e8a
6 changed files with 54 additions and 7 deletions
16
.dockerignore
Normal file
16
.dockerignore
Normal 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
5
.github/pull.yml
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
version: "1"
|
||||
rules:
|
||||
- base: main
|
||||
upstream: fmhy:main
|
||||
mergeMethod: merge
|
20
Dockerfile
Normal file
20
Dockerfile
Normal 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
6
docker-compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
services:
|
||||
fmhy:
|
||||
container_name: fmhy
|
||||
image: patlukat/fmhy
|
||||
ports:
|
||||
- "4173:4173"
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue