Files
regex-vis/Dockerfile
Bowen 9b6d917634 Migrate CRA to Vite and upgrade dependencies (#127)
- [x] Migrate CRA to Vite
- [x] Upgrade node version to 18 in Github actions
- [x] Upgrade node version to 18 in Docker
- [x] Migrate styled-jsx to tailwind
- [x] Upgrade dependencies
  - [x] Upgrade `@sentry/react`. Remove `@sentry/tracing` because we don't need to measure performance by Sentry.
  - [x] Upgrade `jotai`. Add `jotai-immer` because the `jotai` package no longer includes `jotai/immer`.
  - [x] Upgrade `typescirpt`
- [x] Migrate jest to vitest
- [x] Migrate `geist-ui` to `shadcn-ui`
- [x] Check all Todos
2024-08-12 23:31:30 +08:00

23 lines
344 B
Docker

FROM node:18
# Install pnpm
RUN npm install -g pnpm
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY . ./
# Install dependencies
RUN pnpm install
# Copy the rest of the application code
COPY . .
# Expose port 3000
EXPOSE 3000
# Start the application
CMD [ "pnpm", "start"]