mirror of
https://github.com/langchain-ai/langchain-extract.git
synced 2026-07-01 20:24:03 -04:00
c1f3e94698
Closes #30 Closes #29 ## Changes - Migrate from vite to next.js - Add `./frontend/Dockerfile` and add `frontend` service to docker-compose - Add lint & formatting checks to CI - Add frontend build check to CI - Update python CI to not run on frontend changes - Add `.env.example` to frontend (for `BASE_API_URL`) - Update some types - Add eslint rules - Frontend port is now `3000` (nextjs default) - Removed all instances of `react-router-dom` in favor of `next/navigation`
31 lines
571 B
Docker
31 lines
571 B
Docker
FROM node:18-alpine AS base
|
|
|
|
FROM base AS base-deps
|
|
WORKDIR /app
|
|
|
|
COPY --link ./yarn.lock ./package.json ./.yarnrc.yml ./
|
|
|
|
FROM base AS installer
|
|
WORKDIR /app
|
|
|
|
COPY --link --from=base-deps /app/package.json ./package.json
|
|
COPY --link --from=base-deps /app/yarn.lock ./yarn.lock
|
|
COPY --link .yarnrc.yml .
|
|
RUN yarn install
|
|
|
|
FROM base AS builder
|
|
WORKDIR /app
|
|
|
|
COPY --link --from=installer /app .
|
|
COPY --link tsconfig.json tsconfig.json
|
|
RUN yarn build
|
|
|
|
FROM base AS development
|
|
WORKDIR /app
|
|
|
|
COPY --link --from=installer /app .
|
|
|
|
ENV NODE_ENV=development
|
|
|
|
CMD ["yarn", "dev"]
|