Skip to content

Commit

Permalink
Merge pull request #14 from rakeshseal0/dockerize
Browse files Browse the repository at this point in the history
added support for dockerizing the project
  • Loading branch information
seths10 authored Oct 7, 2022
2 parents 7839f98 + f8e6e43 commit 19b9cf3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM nginx:alpine
# Set working directory to nginx asset directory
WORKDIR /usr/share/nginx/html

# Remove default nginx static assets
RUN rm -rf ./*

# Copy static assets over
COPY ./index.html ./
RUN mkdir styles
RUN mkdir js
COPY styles ./styles
COPY js ./js


# Containers run nginx with global directives and daemon off
ENTRYPOINT ["nginx", "-g", "daemon off;"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,11 @@ Now submit the pull request.
<img style="float: right;" src="https://firstcontributions.github.io/assets/Readme/submit-pull-request.png" alt="submit pull request" />

Soon I'll be merging all your changes into the master branch of this project. You will get a notification email once the changes have been merged.

## Run In Docker
```
docker build -t quotegen ./
docker run -p 8080:80 quotegen
```

Then open localhost:8080 from local browser.

0 comments on commit 19b9cf3

Please sign in to comment.