2026-01-02 13:52:08 +02:00
|
|
|
FROM node:22-bookworm
|
|
|
|
|
|
2026-01-06 15:05:19 +01:00
|
|
|
# Install Bun (required for build scripts)
|
|
|
|
|
RUN curl -fsSL https://bun.sh/install | bash
|
|
|
|
|
ENV PATH="/root/.bun/bin:${PATH}"
|
|
|
|
|
|
2026-01-02 13:52:08 +02:00
|
|
|
RUN corepack enable
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
|
RUN pnpm build
|
|
|
|
|
RUN pnpm ui:install
|
|
|
|
|
RUN pnpm ui:build
|
|
|
|
|
|
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
|
|
|
|
|
|
CMD ["node", "dist/index.js"]
|