Update docs

This commit is contained in:
Leonid Maslakov 2023-01-22 21:54:12 +07:00
parent f922dfa043
commit 84f5c5c943
2 changed files with 36 additions and 35 deletions

View File

@ -99,6 +99,42 @@ TIP: If you want to install updates, run: `docker-compose pull && docker-compose
## Build from source code
On Debian/Ubuntu:
```
sudo apt update
sudo apt -y install git make gcc golang
git clone https://git.lcomrade.su/root/lenpaste.git
cd ./lenpaste/
git checkout vX.X
make
```
You can find the result of the build in the `./dist/` directory.
## Build Docker image
**Why is it necessary?**
An official image may not support your architecture e.g. MIPS, PowerPC, etc.
So you can build your own image to run on an officially unsupported architecture
(of course you have to rebuild it every time you update Lenpaste).
On Debian/Ubuntu:
```
sudo apt update
sudo apt -y install git docker.io
git clone https://git.lcomrade.su/root/lenpaste.git
cd ./lenpaste/
git checkout vX.X
sudo docker build -t localhost/lenpaste:latest ./
```
The `localhost/lenpaste:latest` image should now have appeared on your local machine.
You can use it in `docker-compose.yml` or copy it to another machine.
## Other documentation
For all:
- [Frequently Asked Questions](FAQ.md)
@ -112,7 +148,6 @@ For instance administrators:
- [Themes for WEB interface](docs/themes.md)
For contributors:
- [Build (Docker and bare metal)](docs/build.md)
- [Translate on Codeberg Weblate](https://translate.codeberg.org/projects/lenpaste/)
- [Themes for WEB interface](docs/themes.md)

View File

@ -1,34 +0,0 @@
# Build
## Build from source code
On Debian/Ubuntu:
```
sudo apt update
sudo apt -y install git make gcc golang
git clone https://git.lcomrade.su/root/lenpaste.git
cd ./lenpaste/
git checkout vX.X
make
```
You can find the result of the build in the `./dist/` directory.
## Build Docker image
**Why is it necessary?**
An official image may not support your architecture e.g. MIPS, PowerPC, etc.
So you can build your own image to run on an officially unsupported architecture
(of course you have to rebuild it every time you update Lenpaste).
On Debian/Ubuntu:
```
sudo apt update
sudo apt -y install git docker.io
git clone https://git.lcomrade.su/root/lenpaste.git
cd ./lenpaste/
git checkout vX.X
sudo docker build -t localhost/lenpaste:latest ./
```
The `localhost/lenpaste:latest` image should now have appeared on your local machine.
You can use it in `docker-compose.yml` or copy it to another machine.