Skip to content

Commit

Permalink
chore(radio): remove COPY config-docker.yml from Dockerfile and add e…
Browse files Browse the repository at this point in the history
…xample volume mounted in docker-compose.yml
  • Loading branch information
visualizeq committed Dec 13, 2023
1 parent 15aca28 commit bbde232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/radio/docker/discord/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ RUN apt update \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder /app /app
# TODO: Remove this
COPY --from=builder /build/packages/radio/config-docker.yml /app

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

Expand All @@ -51,5 +49,6 @@ ENTRYPOINT ["/tini", "--"]

WORKDIR /app

# TODO: The config file is meant to be mounted and must be named `config.yml`
CMD ["node", ".", "config-docker.yml"]
# The config file is meant to be mounted as volume from docker-compose.yml
# and must be named `config.yml` (absolute path: /app/config.yml)
CMD ["node", ".", "config.yml"]
1 change: 1 addition & 0 deletions packages/radio/docker/discord/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ services:
LOG_PRETTY: hide-date,use-colors
FORCE_COLOR: 3
volumes:
- /Music-Station/medley/config.yml:/app/config-docker.yml
- /Music-Station/musics:/data/musics
- /Music-Station/medley-drops:/data/medley-drops

0 comments on commit bbde232

Please sign in to comment.