mirror of
https://github.com/Bowen7/regex-vis.git
synced 2025-12-20 02:17:52 +08:00
- [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
23 lines
344 B
Docker
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"]
|