@radix-ui/react-tabs
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -4,20 +4,22 @@ FROM node:20-alpine
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
# Enable Yarn
|
||||
RUN corepack enable
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci
|
||||
# Copy package files
|
||||
COPY package.json yarn.lock* ./
|
||||
|
||||
# Install dependencies with Yarn
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# Expose the port the app runs on
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the application in production mode by default
|
||||
CMD ["npm", "start"]
|
||||
CMD ["yarn", "dev"]
|
||||
Reference in New Issue
Block a user