Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ RUN npm run build

#### Step 2
# Copy the build directory to Nginx directory

# Fetch nginx image from docker hub
#Fetch nginx image from docker hub
FROM nginx
EXPOSE 80
#
COPY --from=builder /app/build /usr/share/nginx/html
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#use itfor development
version: '3'
services:
web:
Expand All @@ -18,4 +19,4 @@ services:
# Reference local machine's folder to react-project in container
# Map
# local-machine-folder:container-folder
- .:/react-project
- .:/react-project
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function App() {
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload by Abhinav 124.
master
</p>
<a
className="App-link"
Expand Down