File size: 549 Bytes
d91d7a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Use an official Node runtime as a parent image
FROM node:18

# Install nodemon globally
RUN npm install -g nodemon

# Create a directory for the application
WORKDIR /app/backend

# Copy package.json and package-lock.json
COPY backend/package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY backend .

# Ensure correct permissions for the Stockfish binary
RUN chmod +x /app/backend/engine/stockfish

# Expose the port
EXPOSE 3000

# Define the command to run the backend app
CMD ["npm", "run", "dev"]