FROM node:18-alpine WORKDIR /app # Copy only the necessary package files first COPY package*.json ./ RUN npm install # Copy OpenAPI models into the build context COPY openapi ./openapi # Copy the rest of the logistics app files COPY . . # Build the application RUN npm run build