Update docs

main
Leonid Maslakov 8 months ago
parent f922dfa043
commit 84f5c5c943

@ -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)

@ -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.
Loading…
Cancel
Save