Skip to content

Commit

Permalink
chore: add bililive-go home for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
paomian committed Jan 2, 2024
1 parent 9803636 commit bfdc03d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM alpine

ARG tag

ENV WORKDIR="/srv/bililive"
ENV OUTPUT_DIR="/srv/bililive" \
CONF_DIR="/etc/bililive-go" \
LOG_DIR="/opt/bililive" \
PORT=8080

ENV PUID=0 PGID=0 UMASK=022
Expand All @@ -27,12 +28,10 @@ COPY config.docker.yml $CONF_DIR/config.yml
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

VOLUME $LOG_DIR

VOLUME $OUTPUT_DIR

EXPOSE $PORT

WORKDIR /opt/bililive
WORKDIR ${WORKDIR}
ENTRYPOINT [ "sh" ]
CMD [ "/entrypoint.sh" ]
4 changes: 3 additions & 1 deletion config.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ rpc:
bind: :8080
debug: false
interval: 20
out_put_path: /srv/bililive
out_put_path: /opt/bililive-go/video
log:
out_put_folder: /opt/bililive-go/log
feature:
use_native_flv_parser: false
live_rooms:
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
#!/bin/sh

chown -R ${PUID}:${PGID} /opt/bililive/
chown -R ${PUID}:${PGID} /srv/bililive/
HOME=/srv/bililive

chown -R ${PUID}:${PGID} ${HOME}

umask ${UMASK}

Expand Down

0 comments on commit bfdc03d

Please sign in to comment.