This commit is contained in:
Admin9705
2025-04-08 08:11:59 -04:00
parent 1ea69e7f62
commit c6b8c6e924
10 changed files with 984 additions and 324 deletions

View File

@@ -11,17 +11,18 @@ COPY missing.py upgrade.py ./
COPY web_server.py ./
COPY utils/ ./utils/
# Create templates directory and copy index.html
RUN mkdir -p templates
RUN mkdir -p templates static/css static/js
COPY templates/ ./templates/
COPY static/ ./static/
# Create required directories
RUN mkdir -p /tmp/huntarr-state
RUN mkdir -p /tmp/huntarr-logs
RUN mkdir -p /config/stateful /config/settings
# Default environment variables
ENV API_KEY="your-api-key" \
API_URL="http://your-sonarr-address:8989" \
API_TIMEOUT="60" \
HUNT_MISSING_SHOWS=1 \
HUNT_UPGRADE_EPISODES=0 \
HUNT_UPGRADE_EPISODES=5 \
SLEEP_DURATION=900 \
STATE_RESET_INTERVAL_HOURS=168 \
RANDOM_SELECTION="true" \
@@ -30,6 +31,8 @@ DEBUG_MODE="false" \
ENABLE_WEB_UI="true" \
SKIP_FUTURE_EPISODES="true" \
SKIP_SERIES_REFRESH="false"
# Create volume mount points
VOLUME ["/config"]
# Expose web interface port
EXPOSE 8988
# Add startup script that conditionally starts the web UI