Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added dockerfile #158

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@ Note: there is also an online version, which can be found at [my-mind.github.io]
* ~~Open index.html in your webbrowser~~ currently not working
* Done! If need be, you can find the manual [here](https://github.com/ondras/my-mind/wiki)

## Docker
To dockerize My Mind

1. Clone the repo

`git clone [email protected]:ondras/my-mind.git`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly better to use the HTTPS URI:

git clone https://github.com/ondras/my-mind.git

2. Build the image

`docker build -t my-mind .`

3. Run container

`docker run -d --name=my-mind -p 80:80 my-mind`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

port 80 is often taken you might want to use port 8080:80 and then write down that this could be changed

4. Access My Mind

`http://localhost`

## Contributing

Do you want to participate?
Expand Down
4 changes: 4 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM nginx:alpine

COPY . /usr/share/nginx/html

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, code, I tested locally and it was working