-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (21 loc) · 773 Bytes
/
Dockerfile
File metadata and controls
32 lines (21 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM node:22-slim
RUN corepack enable && corepack prepare pnpm@10.33.0 --activate
# Install git for postinstall hook
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY cli/package.json cli/
COPY desktop/package.json desktop/
COPY mobile/package.json mobile/
COPY extension/package.json extension/
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
# Next.js standalone output doesn't include static assets — copy them in
RUN cp -r public .next/standalone/public
RUN cp -r .next/static .next/standalone/.next/static
ENV NODE_ENV=production
ENV HOSTNAME=0.0.0.0
ENV PORT=3000
EXPOSE 3000
CMD ["node", ".next/standalone/server.js"]