FROM node:12-alpine LABEL maintainer="Rishi Ghan " # Working directory WORKDIR /acquisition-service # Install dependencies COPY package.json package-lock.json ./ # Copy source COPY . . # Build and cleanup ENV NODE_ENV=production RUN npm run build \ && npm prune EXPOSE 3080 # Start server CMD ["npm", "start"]