mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 22:34:25 +01:00
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM golang:1.21.2 as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
|
||||
|
||||
####
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
COPY --from=builder /app/main .
|
||||
|
||||
CMD ["./main"]
|
||||
|
||||
11
README.md
11
README.md
@@ -7,4 +7,13 @@ njump has some special features to effectively share notes on platforms that off
|
||||
|
||||
njump currently lives under [njump.me](https://njump.me), you can reach it appending a Nostr NIP-19 entity (npub, nevent, nprofile, naddr, etc.) or a NIP-05 address after the domain, e.g. `njump.me/nevent1xxxxxx...xxx` or `njump.me/xxxx@zzzzz.com`
|
||||
|
||||
For more information about njump's philosophy and its use, read the presentation [on the homepage](https://njump.me).
|
||||
For more information about njump's philosophy and its use, read the presentation [on the homepage](https://njump.me).
|
||||
|
||||
Docker
|
||||
=====
|
||||
|
||||
To build and run in a Docker container:
|
||||
```bash
|
||||
docker build -t njump .
|
||||
docker run -e DOMAIN=njump.mydomain.com -p 2999:2999 njump
|
||||
```
|
||||
Reference in New Issue
Block a user