Files
dashlio/Dockerfile
Daryn 7fa65a9ee3
Some checks failed
ci / ci (22, ubuntu-latest) (push) Has been cancelled
Add docker and build scripts
2026-04-29 10:01:33 +01:00

22 lines
422 B
Docker

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