File tree Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ # Use an official Node.js runtime as a parent image
2+ FROM node:18-alpine
3+
4+ # Set the working directory
5+ WORKDIR /app
6+
7+ # Copy package.json and package-lock.json
8+ COPY package*.json ./
9+
10+ # Install dependencies
11+ RUN npm install
12+
13+ # Copy the rest of the application code
14+ COPY . .
15+
16+ # Expose the app port
17+ EXPOSE 3000
18+
19+ # Start the application
20+ CMD ["npm" , "start" ]
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+
4+ < head >
5+ < meta charset ="UTF-8 ">
6+ < title > Sample HTML Page</ title >
7+ </ head >
8+
9+ < body >
10+ < h1 > Welcome to the Sample HTML Page</ h1 >
11+ < p > This is a simple HTML file for demonstration purposes.</ p >
12+ < ul >
13+ < li > First item</ li >
14+ < li > Second item</ li >
15+ < li > Third item</ li >
16+ </ ul >
17+ </ body >
18+
19+ </ html >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <library >
3+ <book id =" 1" >
4+ <title >Introduction to XML</title >
5+ <author >Jane Doe</author >
6+ <year >2022</year >
7+ <genre >Technology</genre >
8+ </book >
9+ <book id =" 2" >
10+ <title >Learning React</title >
11+ <author >John Smith</author >
12+ <year >2023</year >
13+ <genre >Programming</genre >
14+ </book >
15+ </library >
You can’t perform that action at this time.
0 commit comments