Perplexica/app.dockerfile

27 lines
671 B
Text
Raw Normal View History

2025-03-20 09:46:50 +05:30
FROM node:20.18.0-alpine AS builder
2024-04-09 16:21:05 +05:30
WORKDIR /home/perplexica
2025-03-20 09:46:50 +05:30
COPY package.json yarn.lock ./
2024-10-18 17:29:26 +05:30
RUN yarn install --frozen-lockfile
2025-03-20 09:46:50 +05:30
COPY tsconfig.json next.config.mjs next-env.d.ts postcss.config.js drizzle.config.ts tailwind.config.ts ./
COPY src ./src
COPY public ./public
RUN mkdir -p /home/perplexica/data
2024-04-09 16:21:05 +05:30
RUN yarn build
2025-03-20 09:46:50 +05:30
FROM node:20.18.0-alpine
WORKDIR /home/perplexica
COPY --from=builder /home/perplexica/public ./public
COPY --from=builder /home/perplexica/.next/static ./public/_next/static
COPY --from=builder /home/perplexica/.next/standalone ./
COPY --from=builder /home/perplexica/data ./data
RUN mkdir /home/perplexica/uploads
CMD ["node", "server.js"]