mirror of
https://github.com/fmhy/edit.git
synced 2025-08-04 02:02:13 +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
|
// @unocss-include
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
name: 'freemediaheckyeah',
|
name: 'Kugelstadt',
|
||||||
description: 'The largest collection of free stuff on the internet!',
|
description: 'Copy of fmhy.net!',
|
||||||
hostname: 'https://fmhy.net',
|
hostname: 'https://fmhy.kugelstadt.cc',
|
||||||
keywords: ['stream', 'movies', 'gaming', 'reading', 'anime'],
|
keywords: ['stream', 'movies', 'gaming', 'reading', 'anime'],
|
||||||
build: {
|
build: {
|
||||||
api: true,
|
api: true,
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
title: Welcome
|
title: Kugelstadt
|
||||||
layout: home
|
layout: home
|
||||||
description: The largest collection of free stuff on the internet!
|
description: Copy of fmhy.net!
|
||||||
|
|
||||||
hero:
|
hero:
|
||||||
name: freemediaheckyeah
|
name: Kugelstadt freemediaheckyeah
|
||||||
tagline: The largest collection of free stuff on the internet!
|
tagline: Copy of fmhy.net!
|
||||||
announcement:
|
announcement:
|
||||||
title: April Updates 🌼
|
title: April Updates 🌼
|
||||||
link: /posts/april-2025
|
link: /posts/april-2025
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue