Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yyosefi committed Jun 9, 2021
0 parents commit c594a37
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM nginx

WORKDIR '/app'

EXPOSE 80

COPY ./html/ /usr/share/nginx/html
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# my-first-app
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3'
services:
web:
tty: true # Terminal
# We are defining the custom Dockerfile
build:
context: .
dockerfile: Dockerfile
# Map local machines's 8000 port to container's port 3000
# React app runs on port 3000 by default
ports:
- "8000:80"
# Volumes
volumes:
# Map local-machine-folder:container-folder
- ./html:/usr/share/nginx/html/
19 changes: 19 additions & 0 deletions html/days.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>Days App</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
</head>
<body>
<ul class="list-group">
<li class="list-group-item" style="color:blue;">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
<li class="list-group-item">A fourth item</li>
<li class="list-group-item" active>And a fifth one</li>
</ul>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
</body>
</html>
9 changes: 9 additions & 0 deletions html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Days App</title>
</head>
<body>
<a href="days.html">Go to Days Page</a>
</body>
</html>

0 comments on commit c594a37

Please sign in to comment.