First official commit

This commit is contained in:
2026-07-13 17:08:55 +02:00
parent 6d7fae0159
commit 7862457be7
7 changed files with 147 additions and 21 deletions

7
template/.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
node_modules
.git
.gitignore
Dockerfile
.dockerignore
npm-debug.log
.env

32
template/Dockerfile Normal file
View File

@@ -0,0 +1,32 @@
# ---------- Build Stage ----------
FROM node:20-alpine AS builder
WORKDIR /app
RUN apk add --no-cache python3 make g++ git
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
ARG CACHEBUST=1
COPY . .
# Build the Nuxt app
RUN npm run build
# ---------- Production Stage ----------
FROM node:20-alpine
WORKDIR /app
# Copy built output
COPY --from=builder /app/.output ./.output
# Expose Nuxt port
EXPOSE 3000
# Start Nuxt production server
CMD ["node", ".output/server/index.mjs"]