Compare commits
3 commits
dependabot
...
main
Author | SHA1 | Date | |
---|---|---|---|
a72b9b0e05 | |||
4ed6d78212 | |||
1679bae1c1 |
3 changed files with 49 additions and 1 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
FROM node:latest
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy package files first to leverage Docker cache
|
||||||
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN yarn install
|
||||||
|
|
||||||
|
# Copy the rest of the application
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Expose port 5000
|
||||||
|
EXPOSE 5000
|
||||||
|
|
||||||
|
# Start the application
|
||||||
|
CMD ["yarn", "start"]
|
25
README.md
25
README.md
|
@ -1,4 +1,27 @@
|
||||||
# Matrix.to
|
# dm.sij.law
|
||||||
|
This repo is cloned from the official Matrix.to repo on Github. I've added a Dockerfile and will make modifications in the future. The current version is live at [dm.sij.law](https://dm.sij.law)
|
||||||
|
|
||||||
|
## First clone the repo
|
||||||
|
```bash
|
||||||
|
git clone https://sij.ai/sij/env.esq.git
|
||||||
|
```
|
||||||
|
|
||||||
|
## Next build the image
|
||||||
|
```bash
|
||||||
|
docker build -t matrix-to .
|
||||||
|
```
|
||||||
|
|
||||||
|
## Then run it
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
--name matrix-to \
|
||||||
|
-p 3636:5000 \
|
||||||
|
matrix-to
|
||||||
|
```
|
||||||
|
|
||||||
|
# EVERYTHING BELOW HERE IS ORIGINAL DOCUMENTATION
|
||||||
|
|
||||||
|
## Matrix.to
|
||||||
|
|
||||||
Matrix.to is a simple url redirection service for the Matrix.org ecosystem
|
Matrix.to is a simple url redirection service for the Matrix.org ecosystem
|
||||||
which lets users share links to matrix entities without being tied to a
|
which lets users share links to matrix entities without being tied to a
|
||||||
|
|
6
docker-compose.yaml
Normal file
6
docker-compose.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
matrix-to:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "3636:5000"
|
Loading…
Reference in a new issue