-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
base: master
Are you sure you want to change the base?
added dockerfile #158
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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` | ||
|
||
2. Build the image | ||
|
||
`docker build -t my-mind .` | ||
|
||
3. Run container | ||
|
||
`docker run -d --name=my-mind -p 80:80 my-mind` | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM nginx:alpine | ||
|
||
COPY . /usr/share/nginx/html | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice, code, I tested locally and it was working |
There was a problem hiding this comment.
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