Files
Brace Sproul c1f3e94698 frontend[major]: Migrate to nextjs (#34)
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`
2024-03-18 15:33:14 -07:00

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"]