diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..de926ef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM node:20-alpine + +# Enable pnpm +RUN corepack enable && corepack prepare pnpm@latest --activate + +# Set working directory +WORKDIR /app + +# Copy files +COPY . . + +# Install dependencies +RUN pnpm install --frozen-lockfile + +# Build the SvelteKit app +RUN pnpm run build + +# Expose default port +EXPOSE 3000 + +# Set environment +ENV NODE_ENV=production + +# Start the SvelteKit app +CMD ["node", "build"]