-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e85c84
commit 1459c66
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Use the official nginx image as the base image | ||
FROM nginx:alpine | ||
|
||
# Copy the HTML, CSS, and JavaScript files into the container | ||
COPY ./ /usr/share/nginx/html | ||
|
||
# Expose port 80 | ||
EXPOSE 80 | ||
|
||
# Start nginx when the container launches | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: static-web-app | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: static-web-app | ||
template: | ||
metadata: | ||
labels: | ||
app: static-web-app | ||
spec: | ||
containers: | ||
- name: static-web-app | ||
image: your-image-name | ||
ports: | ||
- containerPort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: static-web-app-service | ||
spec: | ||
selector: | ||
app: static-web-app | ||
ports: | ||
- protocol: TCP | ||
port: 3000 | ||
targetPort: 80 | ||
type: LoadBalancer |