diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ff17350 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:22-alpine AS builder + +WORKDIR /app + +RUN corepack enable && corepack prepare pnpm@latest --activate + +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install --frozen-lockfile + +COPY . . +RUN pnpm run build + +FROM nginx:alpine + +COPY --from=builder /app/dist /usr/share/nginx/html + +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] diff --git a/nixpacks.toml b/nixpacks.toml deleted file mode 100644 index 99bf11c..0000000 --- a/nixpacks.toml +++ /dev/null @@ -1,8 +0,0 @@ -[phases.setup] -nixPkgs = ['nodejs_22', 'pnpm'] - -[phases.install] -cmds = ['pnpm install'] - -[phases.build] -cmds = ['pnpm run build']