Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
devilAPI authored Dec 27, 2024
1 parent cf8bbc3 commit f753eec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM deluan/navidrome:latest
USER root
RUN apk add --no-cache shadow

# Create a user and group for Navidrome
# Create a user and group for Navidrome (if needed for other operations, but not switching to it)
RUN groupadd -g 1000 navidrome && useradd -u 1000 -g navidrome -m -s /bin/bash navidrome

# Set environment variable for host data directory
Expand All @@ -21,8 +21,5 @@ WORKDIR ${HOST_DATA_DIR}
# Set environment variables for database configuration
ENV ND_DATABASE_URL="sqlite3://${HOST_DATA_DIR}/navidrome.db"

# Switch to the created non-root user
USER navidrome

# Expose port (optional, in case you need to expose a port)
EXPOSE 4533

0 comments on commit f753eec

Please sign in to comment.