feat(dockerfile): update backend image

This commit is contained in:
ItzCrazyKns 2024-10-18 17:29:26 +05:30
parent 4576d3de13
commit c8cd959496
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM node:18-slim
FROM node:alpine
ARG NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
@ -9,7 +9,7 @@ WORKDIR /home/perplexica
COPY ui /home/perplexica/
RUN yarn install --frozen-lockfile --network-timeout 600000
RUN yarn install --frozen-lockfile
RUN yarn build
CMD ["yarn", "start"]

View File

@ -1,4 +1,4 @@
FROM node:20-buster
FROM node:18-slim
WORKDIR /home/perplexica
@ -10,7 +10,7 @@ COPY yarn.lock /home/perplexica/
RUN mkdir /home/perplexica/data
RUN yarn install --frozen-lockfile
RUN yarn install --frozen-lockfile --network-timeout 600000
RUN yarn build
CMD ["yarn", "start"]