Files
ControlPatente/backend/Dockerfile
2025-12-22 22:40:38 -03:00

25 lines
359 B
Docker

FROM node:18-alpine
WORKDIR /app
# Copy package files first for caching
COPY package*.json ./
# Install dependencies
RUN apk add --no-cache openssl
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Generate Prisma Client
RUN npx prisma generate
# Expose port
EXPOSE 3000
# Start command (dev mode for now)
CMD ["npm", "run", "dev"]