fix(docker): update base image to node:22-slim and remove platform specification
This commit is contained in:
parent
bb84381195
commit
cc5cfda15b
2 changed files with 2 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
FROM --platform=linux/amd64 node:20-slim AS builder
|
FROM node:22-slim AS builder
|
||||||
|
|
||||||
WORKDIR /home/perplexica
|
WORKDIR /home/perplexica
|
||||||
|
|
||||||
|
|
@ -16,7 +16,7 @@ RUN yarn build
|
||||||
RUN yarn add --dev @vercel/ncc
|
RUN yarn add --dev @vercel/ncc
|
||||||
RUN yarn ncc build ./src/lib/db/migrate.ts -o migrator
|
RUN yarn ncc build ./src/lib/db/migrate.ts -o migrator
|
||||||
|
|
||||||
FROM --platform=linux/amd64 node:20-slim
|
FROM node:22-slim
|
||||||
|
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,9 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: itzcrazykns1337/perplexica:main
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: app.dockerfile
|
dockerfile: app.dockerfile
|
||||||
platforms:
|
|
||||||
- linux/amd64
|
|
||||||
environment:
|
environment:
|
||||||
- SEARXNG_API_URL=http://searxng:8080
|
- SEARXNG_API_URL=http://searxng:8080
|
||||||
- DATA_DIR=/home/perplexica
|
- DATA_DIR=/home/perplexica
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue