File size: 583 Bytes
2f7b603
3a37935
2f7b603
 
 
 
 
 
 
3daf62a
 
2f7b603
 
 
 
 
 
 
 
 
 
 
 
9594d5a
2f7b603
 
 
 
 
3daf62a
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
28
29
30
31
# Use an official Node.js runtime as a parent image
FROM node:22.4.0

# Set the working directory
WORKDIR /app

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

RUN npm install -g npm@10.9.0

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY backend/ .

# Build the application
RUN npm run build


COPY backend/entrypoint.sh ./entrypoint.sh

RUN chmod +x ./entrypoint.sh
# Expose the port that the app will run on
EXPOSE 3000

# Command to run the application
ENTRYPOINT ["./entrypoint.sh"]
CMD ["npm", "run", "start:prod"]