Skip to content

Commit

Permalink
feat(radio): use Tini in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
vittee committed Dec 13, 2023
1 parent cfcfa6e commit 15aca28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/radio/docker/discord/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ COPY --from=builder /build/packages/radio/config-docker.yml /app

RUN mkdir -p /data/musics /data/drops

# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]

WORKDIR /app

# TODO: Remove this and use command for starting radio bot
# TODO: The config file is meant to be mounted and must be named `config.yml`
CMD node radio/discord/bot_main.js config-docker.yml
CMD ["node", ".", "config-docker.yml"]

0 comments on commit 15aca28

Please sign in to comment.