Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
MarlikAlmighty committed Dec 27, 2023
1 parent c5be90b commit 9825a65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ COPY . .
RUN go mod tidy
RUN go build -o /go/src/mdns/app /go/src/mdns/cmd/main.go

FROM gruebel/upx:latest as upx
COPY --from=builder /go/src/mdns/app /app
RUN upx --best --lzma -o /app /app

FROM scratch

COPY --from=builder /go/src/mdns/app /mdns
COPY --from=upx /app /mdns

ENV HTTP_PORT=8081
ENV DNS_TCP_PORT=53
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Then run it:
sudo ./ubuntu-server-install.sh
```

## Docker

```sh
docker run -it --rm -p 53:53/udp -p 53:53/tcp -p 8081:8081 -d marlikalmighty/mdns
```

### Request examples

```sh
Expand Down

0 comments on commit 9825a65

Please sign in to comment.