Add docker and build scripts
Some checks failed
ci / ci (22, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
2026-04-29 10:01:33 +01:00
parent 08bb142c0a
commit 7fa65a9ee3
4 changed files with 94 additions and 0 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM node:20-alpine
# Enable corepack for pnpm
#RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /app
# Copy package files
COPY package.json pnpm-lock.yaml ./
# Install dependencies
RUN pnpm install
# Copy application code
COPY . .
# Expose Nuxt default port
EXPOSE 3000
# Ensure the application rebuilds each time the container is launched
CMD pnpm run build && node .output/server/index.mjs