# Use official Node.js image FROM node:18 # Set working directory WORKDIR /app RUN npm install express # Copy the rest of the app files COPY . . # Ensure codes.json exists and set proper permissions RUN touch codes.json && echo '{}' > codes.json && chmod 666 codes.json amounts2.json amounts.json # Expose port 3000 EXPOSE 7860 # Start the server CMD ["node", "server.js"]