Merge branch 'master' of github.com:navilg/Perplexica into feat/replace-config-toml
Signed-off-by: Navratan Lal Gupta <navilg0409@gmail.com>
This commit is contained in:
commit
4ef34469af
45 changed files with 7030 additions and 143 deletions
|
|
@ -12,6 +12,9 @@ COPY public ./public
|
|||
RUN mkdir -p /home/perplexica/data
|
||||
RUN yarn build
|
||||
|
||||
RUN yarn add --dev @vercel/ncc
|
||||
RUN yarn ncc build ./src/lib/db/migrate.ts -o migrator
|
||||
|
||||
FROM node:20.18.0-slim
|
||||
|
||||
WORKDIR /home/perplexica
|
||||
|
|
@ -21,9 +24,14 @@ 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
|
||||
|
||||
COPY drizzle ./drizzle
|
||||
COPY --from=builder /home/perplexica/migrator/build ./build
|
||||
COPY --from=builder /home/perplexica/migrator/index.js ./migrate.js
|
||||
|
||||
RUN mkdir /home/perplexica/uploads
|
||||
|
||||
CMD ["bash", "/home/perplexica/container_entrypoint.sh"]
|
||||
COPY sample.config.toml /home/perplexica/config.toml
|
||||
COPY entrypoint.sh ./entrypoint.sh
|
||||
RUN chmod +x ./entrypoint.sh
|
||||
CMD ["bash", "./entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue