Skip to content

Commit

Permalink
Merge pull request #102 from allenporter/stream-config
Browse files Browse the repository at this point in the history
Update configuration path in docker file
  • Loading branch information
allenporter authored Feb 20, 2022
2 parents 88bb8cc + 2c113e5 commit f009582
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ FROM alpine:3.15

WORKDIR /app


COPY --from=builder /go/src/app/rtsp-to-web /app/
COPY --from=builder /go/src/app/web /app/web
COPY --from=builder /go/src/app/config.json /app/

RUN mkdir -p /config
COPY --from=builder /go/src/app/config.json /config

ENV GO111MODULE="on"
ENV GIN_MODE="release"

CMD ["./rtsp-to-web"]
CMD ["./rtsp-to-web", "--config=/config/config.json"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ You may override the <a href="#example-configjson">configuration</a> `/PATH_TO_C

```bash
$ docker run --name rtsp-to-web \
-v /PATH_TO_CONFIG/config.json:/app/config.json \
-v /PATH_TO_CONFIG/config.json:/config/config.json \
--network host \
ghcr.io/deepch/rtsptoweb:latest
```
Expand Down

0 comments on commit f009582

Please sign in to comment.