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

Create docker file, let the deployment and development more easier #265

Open
wants to merge 2 commits into
base: main
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
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:lts-alpine

RUN apk update

WORKDIR /app

COPY . ./

RUN yarn

RUN yarn build

Copy link

Choose a reason for hiding this comment

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

i

Suggested change
****

https://matrix.to/#/@matthew:matrix.org
192.168.0.1

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for your reply, but I don't get what you're trying to say, do I need to have further modification on the Dockerfile? (e.g. https://github.com/henryclw/matrix.to/blob/dev-docker/Dockerfile)

EXPOSE 5000

ENTRYPOINT ["yarn", "start"]
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,13 @@ You can discuss matrix.to in
## Build Instructions

1. Install [yarn](https://classic.yarnpkg.com/en/docs/install)
1. `git clone https://github.com/matrix-org/matrix.to`
1. `cd matrix.to`
1. `yarn`
1. `yarn start`
1. Go to http://localhost:5000 in your browser
2. `git clone https://github.com/matrix-org/matrix.to`
3. `cd matrix.to`
4. `yarn`
5. `yarn start`
6. Go to http://localhost:5000 in your browser

## Docker instructions

1. Build your own image, `docker build . -t matrixdotorg/matrix-to:dev`
2. Run, `docker run -it -d --name matrix-to-dev -p 5000:5000 matrixdotorg/matrix-to:dev`