File size: 387 Bytes
6e683ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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"]