Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmer committed Feb 10, 2021
1 parent d34d41d commit 3feb449
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ RUN git clone https://github.com/deepch/RTSPtoWeb.git && cd RTSPtoWeb && git che
# Move to /dist directory as the place for resulting binary folder
WORKDIR /dist

COPY config/config.json /dist/
COPY start.sh /

# Copy binary from build to main folder
RUN cp /build/RTSPtoWeb/RTSPtoWeb .
RUN cp -r /build/RTSPtoWeb/web .
RUN chmod a+x /dist/RTSPtoWeb

# Export necessary port & volume
EXPOSE 8083
VOLUME ["/config"]
VOLUME /config

# Command to run when starting the container
CMD "/dist/RTSPtoWeb -config /config/config.json"
ENTRYPOINT "/start.sh"
File renamed without changes.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
rtsp-to-web:
image: cmer/rtsp-to-web
volumes:
- ./data/config:/config
- ./config:/config
ports:
- 8083:8083
restart: unless-stopped
restart: unless-stopped
4 changes: 4 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
cp /config/config.json /dist/
cd /dist
./RTSPtoWeb

0 comments on commit 3feb449

Please sign in to comment.