FROM node:20-alpine
WORKDIR /app
COPY /package*.json ./
RUN npm ci --only=production
COPY cf-api .
RUN mkdir ../common
COPY common ../common
RUN npm run build
EXPOSE 3001
CMD ["node", "dist/index.js"]
