-
-
Notifications
You must be signed in to change notification settings - Fork 268
docs: add docs for docker deployment #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,6 @@ WORKDIR / | |
|
||
COPY --from=builder /go/bin/spoof-dpi . | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["./spoof-dpi"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,13 @@ $ cd SpoofDPI | |
$ go build ./cmd/... | ||
``` | ||
|
||
## docker | ||
You can use Dockerfile to build a docker image | ||
```shell | ||
docker build ./ -t spoof-dpi:latest | ||
``` | ||
Use `docker run -it -p 8080:8080 --name spoof-dpi spoof-dpi:latest` to run container | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think we should show some other example that passes options through the docker run command like below $ docker run -it -p 8080:8080 spoof-dpi:latest --enable-doh There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @xvzc Better also add |
||
|
||
# Usage | ||
``` | ||
Usage: spoof-dpi [options...] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please capitalize the title