Merge branch 'dev/master' into merge_branch
This commit is contained in:
commit
5fc4c97c0b
2 changed files with 19 additions and 9 deletions
|
|
@ -2,32 +2,36 @@ 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
|
||||
|
||||
# 🐧 Install curl + netstat (from net-tools)
|
||||
# RUN apt-get update && apt-get install -y curl net-tools && apt-get clean
|
||||
COPY --from=builder /home/perplexica /home/perplexica
|
||||
|
||||
COPY --from=builder /home/perplexica/public ./public
|
||||
COPY --from=builder /home/perplexica/.next/static ./public/_next/static
|
||||
# COPY --from=builder /home/perplexica/public ./public
|
||||
# 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 --from=builder /home/perplexica/.next/standalone ./
|
||||
# COPY --from=builder /home/perplexica/data ./data
|
||||
|
||||
RUN mkdir /home/perplexica/uploads
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
RUN mkdir -p /home/perplexica/uploads
|
||||
|
||||
# CMD ["node", "server.js"]
|
||||
CMD ["yarn", "dev"]
|
||||
|
|
@ -18,6 +18,10 @@ services:
|
|||
- .env # env variables for auth0
|
||||
environment:
|
||||
- SEARXNG_API_URL=http://searxng:8080
|
||||
- CHOKIDAR_USEPOLLING=true
|
||||
- NEXT_PUBLIC_AWS_DB_API_URL=https://lyxeetk4w1.execute-api.us-east-1.amazonaws.com/default/getFromStockalyzerDB
|
||||
- NEXT_PUBLIC_AWS_DB_API_KEY=0KcuAyP5zT8kk2vW4MXAU9lMi52Yorti4vRwLwia
|
||||
- NODE_ENV=development
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
|
|
@ -26,6 +30,8 @@ services:
|
|||
- backend-dbstore:/home/perplexica/data
|
||||
- uploads:/home/perplexica/uploads
|
||||
- ./config.toml:/home/perplexica/config.toml
|
||||
- ./src:/home/perplexica/src
|
||||
- ./public:/home/perplexica/public
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue