From 7c6984012adcee8019312aa7d81699527bd267bd Mon Sep 17 00:00:00 2001 From: Jason Feibelman Date: Wed, 26 Mar 2025 16:37:04 -0400 Subject: [PATCH] Initial commit --- app.dockerfile | 12 ++++++++---- docker-compose.yaml | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app.dockerfile b/app.dockerfile index 11503fe..ac31668 100644 --- a/app.dockerfile +++ b/app.dockerfile @@ -2,29 +2,33 @@ FROM node:20.18.0-slim AS builder ENV NEXT_PUBLIC_AWS_DB_API_URL=https://lyxeetk4w1.execute-api.us-east-1.amazonaws.com/default/getFromStockalyzerDB ENV NEXT_PUBLIC_AWS_DB_API_KEY=0KcuAyP5zT8kk2vW4MXAU9lMi52Yorti4vRwLwia +ENV NODE_ENV=development +ENV CHOKIDAR_USEPOLLING=true WORKDIR /home/perplexica COPY package.json yarn.lock ./ RUN yarn install --frozen-lockfile --network-timeout 600000 +COPY . . 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 +# 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/static ./public/_next/static -COPY --from=builder /home/perplexica/.next/standalone ./ +# COPY --from=builder /home/perplexica/.next/standalone ./ COPY --from=builder /home/perplexica/data ./data RUN mkdir /home/perplexica/uploads -CMD ["node", "server.js"] \ No newline at end of file +# CMD ["node", "server.js"] +CMD ["yarn", "dev"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index b702b4e..ca5bc00 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -16,6 +16,7 @@ services: dockerfile: app.dockerfile environment: - SEARXNG_API_URL=http://searxng:8080 + - CHOKIDAR_USEPOLLING=true ports: - 3000:3000 networks: @@ -24,6 +25,7 @@ services: - backend-dbstore:/home/perplexica/data - uploads:/home/perplexica/uploads - ./config.toml:/home/perplexica/config.toml + - ./:/home/perplexica restart: unless-stopped networks: