File size: 519 Bytes
bb5a57e
 
 
 
 
 
 
 
3d588a4
bb5a57e
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use the official Node.js image
FROM node:latest

# Set the working directory inside the container
WORKDIR /aatsan/my-App

# Clone the GitHub repository
RUN apt-get update && apt-get install -y git && \
    git clone https://github.com/Emmraan/api-crud-ops.git -b fronted-view . && \
    rm -rf /var/lib/apt/lists/*

# Copy the repository content to the working directory
COPY . .

# Install Node.js dependencies
RUN npm install

# Expose the application port
EXPOSE 3000

# Start the application
CMD ["npm", "start"]