Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
70cdad1cd4
66 changed files with 8154 additions and 381 deletions
|
|
@ -13,6 +13,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 --platform=linux/amd64 node:20-slim
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
|
@ -24,19 +27,18 @@ 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 drizzle ./drizzle
|
||||
COPY --from=builder /home/perplexica/migrator/build ./build
|
||||
COPY --from=builder /home/perplexica/migrator/index.js ./migrate.js
|
||||
|
||||
# Copy files needed for database migrations at runtime
|
||||
COPY drizzle.config.ts ./
|
||||
COPY src/lib/db/schema.ts ./src/lib/db/
|
||||
COPY docker-entrypoint.sh ./
|
||||
COPY package.json ./
|
||||
COPY entrypoint.sh ./entrypoint.sh
|
||||
|
||||
RUN mkdir /home/perplexica/uploads && \
|
||||
chmod +x /home/perplexica/docker-entrypoint.sh && \
|
||||
npm install playwright drizzle-kit && \
|
||||
chmod +x /home/perplexica/entrypoint.sh && \
|
||||
npm install playwright && \
|
||||
npx -y playwright install chromium --only-shell --with-deps && \
|
||||
apt-get update && \
|
||||
apt-get install -y procps && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
CMD ["./docker-entrypoint.sh"]
|
||||
CMD ["./entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue