36 lines
561 B
Markdown
36 lines
561 B
Markdown
|
![status-badge](https://ci.t-juice.club/api/badges/torjus/gpaste/status.svg)
|
||
|
|
||
|
# gpaste
|
||
|
|
||
|
Simple pastebin-style webapp.
|
||
|
|
||
|
## Build
|
||
|
|
||
|
### gpaste-server
|
||
|
|
||
|
```text
|
||
|
go build -o gpaste-server cmd/server/server.go
|
||
|
```
|
||
|
|
||
|
### gpaste-client
|
||
|
|
||
|
```text
|
||
|
go build -o gpaste cmd/client/client.go
|
||
|
```
|
||
|
|
||
|
## Run using docker
|
||
|
|
||
|
### From registry
|
||
|
|
||
|
```text
|
||
|
docker pull registry.t-juice.club/gpaste:latest
|
||
|
docker run --rm -it -p 8080:8080 registry.t-juice.club/gpaste:latest
|
||
|
```
|
||
|
|
||
|
### From Dockerfile
|
||
|
|
||
|
```text
|
||
|
docker build -t gpaste:latest .
|
||
|
docker run --rm -it p 8080:8080 gpaste:latest
|
||
|
```
|