Fortura/Dockerfile
2025-08-20 12:59:31 -06:00

29 lines
493 B
Docker

# Use Node.js 20 as the base image
FROM node:20-alpine
# Set the working directory
WORKDIR /app
# Install pnpm globally
RUN npm install -g pnpm
# Copy package.json and pnpm-lock.yaml files
COPY package.json pnpm-lock.yaml ./
# Copy turbo.json
COPY turbo.json ./
# Install dependencies
RUN pnpm install --frozen-lockfile
# Copy the rest of the application code
COPY . .
# Build the application
RUN pnpm build
# Expose port 3000
EXPOSE 3000
# Start the application
CMD ["pnpm", "start"]