FROM node:20-alpine
# Install OpenSSL for Prisma
RUN apk add --no-cache openssl
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy application files
COPY . .
# Expose port
EXPOSE 3000
# Start application
CMD ["npm", "run", "dev"]