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
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`