File size: 374 Bytes
2161081
 
 
 
 
 
 
 
 
 
 
 
 
5a49d6d
 
 
2161081
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use Node.js image
FROM node:18-alpine

# Set working directory
WORKDIR /app

# Copy package.json and install dependencies using Yarn
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile

# Copy project files
COPY . .

RUN mkdir -p /app/public && chown -R node:node /app/public


# Expose the port
EXPOSE 5000

# Start the backend server
CMD ["yarn", "start"]