# Use official Node.js image FROM node:18 # Set working directory WORKDIR /app # Copy package.json and install dependencies RUN npm install express cors dotenv # Copy the rest of the application COPY . . # Ensure amounts.json exists and set permissions RUN touch amounts.json && chmod 666 amounts.json # Expose the port EXPOSE 7860 # Start the application CMD ["node", "server.js"]