Skip to content

Commit 5c23b62

Browse files
committed
Minor updates
1 parent 4cbfe6f commit 5c23b62

File tree

4 files changed

+37
-18
lines changed

4 files changed

+37
-18
lines changed

docker-web-demo/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM nginx:latest
2+
COPY index.html /usr/share/nginx/html/index.html

docker-web-demo/index.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<html>
2+
<head>
3+
<title>Docker Demo</title>
4+
<style>
5+
body {
6+
font-family: Arial, sans-serif;
7+
display: flex;
8+
justify-content: center;
9+
align-items: center;
10+
height: 100vh;
11+
margin: 0;
12+
background-color: #f0f0f0;
13+
}
14+
.container {
15+
text-align: center;
16+
padding: 20px;
17+
background-color: white;
18+
border-radius: 8px;
19+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
20+
}
21+
h1 { color: #333; }
22+
.docker-text { color: #0db7ed; }
23+
</style>
24+
</head>
25+
<body>
26+
<div class="container">
27+
<h1>Hello from <span class="docker-text">Docker</span>!</h1>
28+
<p>If you can see this, your nginx container is working.</p>
29+
</div>
30+
</body>

react-todomvc/Dockerfile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
# Use the official Node.js LTS image
21
FROM node:16
3-
4-
# Set the working directory inside the container
52
WORKDIR /app
6-
7-
# Copy package.json and package-lock.json
83
COPY package*.json ./
9-
10-
# Install Node.js dependencies
114
RUN npm install
12-
13-
# Copy the rest of the application code
145
COPY . .
15-
16-
# Expose the port that your app runs on
176
EXPOSE 7002
18-
19-
# Start the Node.js application
20-
CMD ["npm", "run", "serve"]
7+
CMD ["npm","run","serve"]

todomvc-acceptance-tests/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use OpenJDK 17 slim as the base image
2-
FROM openjdk:17-slim
1+
# Use OpenJDK 23 slim as the base image
2+
FROM openjdk:23-slim
33

44
# Install dependencies
55
RUN apt-get update && \
@@ -18,9 +18,9 @@ ENV PATH "$MAVEN_HOME/bin:$PATH"
1818
# Verify Maven installation
1919
RUN mvn -version
2020

21-
# Install curl and update CA certificates
21+
# Update CA certificates
2222
RUN apt-get update && \
23-
apt-get install -y --no-install-recommends curl ca-certificates && \
23+
apt-get install -y --no-install-recommends ca-certificates && \
2424
rm -rf /var/lib/apt/lists/*
2525

2626
# Install Node.js and npm

0 commit comments

Comments
 (0)