-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
# Use Navidrome as the base image | ||
FROM deluan/navidrome:latest | ||
|
||
# Set the working directory | ||
WORKDIR /home/container | ||
|
||
# Copy the custom start.sh script to the container | ||
COPY start.sh /home/container/start.sh | ||
|
||
# Set permissions to allow user access | ||
RUN chmod +x /home/container/start.sh && chown container:container /home/container/start.sh | ||
# Set permissions for the start.sh script | ||
RUN chmod +x /home/container/start.sh | ||
|
||
# Expose the default Navidrome port | ||
EXPOSE 4533 | ||
|
||
# Set the entrypoint to use the custom start.sh | ||
ENTRYPOINT ["/home/container/start.sh"] | ||
# Set the default command to run the start.sh script | ||
CMD ["/bin/bash", "/home/container/start.sh"] |