mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-04-29 15:52:35 +00:00
29 lines
846 B
Docker
29 lines
846 B
Docker
FROM node:20.18.0-slim AS builder
|
|
|
|
WORKDIR /home/perplexica
|
|
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn install --frozen-lockfile --network-timeout 600000
|
|
|
|
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
|
|
RUN yarn build
|
|
|
|
FROM node:20.18.0-slim
|
|
|
|
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
|
|
COPY sample.config.toml /home/perplexica/config.toml
|
|
COPY container_entrypoint.sh /home/perplexica/container_entrypoint.sh
|
|
|
|
RUN mkdir /home/perplexica/uploads
|
|
|
|
CMD ["bash", "/home/perplexica/container_entrypoint.sh"] |