This commit is contained in:
Korbs 2024-07-07 20:04:25 -04:00
parent 578683313d
commit 6558700cd1
7 changed files with 42 additions and 41 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
# build output
dist/
# generated types
.astro/

View file

@ -1,32 +1,13 @@
# Base
FROM debian:12-slim
FROM ark.sudovanilla.org/korbs/nodejs:alpine AS runtime
WORKDIR /app
# Set Work Directory
WORKDIR /minpluto
COPY . /minpluto
COPY . .
# Expose Ports
EXPOSE 1930
# Install Requirements
RUN apt-get update && apt-get -y install \
libcurl4-openssl-dev make g++ ca-certificates curl gnupg
# Install NodeJS v18
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get -y install nodejs npm
# Disable Astro Telemtry
RUN npx astro telemetry disable
# Install Packages
RUN npm i
RUN npm install
RUN npm run translate
RUN npm run build
# Run
CMD npm start --host
ENV HOST=0.0.0.0
ENV PORT=1930
EXPOSE 1930
CMD node ./dist/server/entry.mjs

View file

@ -2,16 +2,27 @@ import { defineConfig } from 'astro/config'
import node from '@astrojs/node'
import vue from '@astrojs/vue'
import astroI18next from "astro-i18next"
import mdx from '@astrojs/mdx';
export default defineConfig({
// Project Structure
publicDir: './src/public/',
site: import.meta.env.SITE_URL,
devToolbar: {
enabled: false
// Integrations and Plugins
integrations: [mdx(), vue(), astroI18next()],
// Security
security: {
checkOrigin: true
},
integrations: [vue(), astroI18next()],
// Server Options
server: {
port: 1930,
host: true
},
// Use Server-Side Rendering
output: 'server',
adapter: node({
mode: 'standalone',
}),
// Others
devToolbar: {enabled: false},
})

BIN
bun.lockb

Binary file not shown.

View file

@ -1,15 +1,21 @@
version: "3"
services:
minpluto:
image: quay.io/sudovanilla/minpluto
pull_policy: always
restart: unless-stopped
volumes:
- ./config.json:/minpluto/config.json
image: ark.sudovanilla.org/minpluto/minpluto:amd64
# image: ark.sudovanilla.org/minpluto/minpluto:arm64 # For ARM Servers
container_name: minpluto-instance
ports:
- "1930:1930"
restart: unless-stopped
pull_policy:
alwaysdns: 194.242.2.9 # all.dns.mullvad.net https://mullvad.net/en/help/dns-over-https-and-dns-over-tls
imageproxy:
image: ark.sudovanilla.org/korbs/imageproxy:amd64
# image: ark.sudovanilla.org/korbs/imageproxy:arm64 # For ARM Servers
container_name: imageproxy-instance
ports:
- 1931:8080
image: ghcr.io/willnorris/imageproxy
restart: unless-stopped
pull_policy: always
alwaysdns: 194.242.2.9 # all.dns.mullvad.net https://mullvad.net/en/help/dns-over-https-and-dns-over-tls
command: -addr 0.0.0.0:8080

View file

@ -23,10 +23,11 @@
"invidious"
],
"scripts": {
"start": "astro dev --port 1930 --host",
"start": "astro dev --host",
"translate": "astro-i18next generate"
},
"dependencies": {
"@astrojs/mdx": "^3.1.2",
"@astrojs/node": "^8.3.2",
"@astrojs/vue": "^4.5.0",
"@iconoir/vue": "^7.7.0",

View file

@ -4,8 +4,9 @@
"paths": {
"@components/*": ["src/components/*"],
"@layouts/*": ["src/layouts/*"],
"@root/*": ["*"],
"@styles/*": ["src/styles/*"],
"@root/*": ["*"]
"@utils/*": ["src/utilities/*"]
}
}
}