diff --git a/Dockerfile b/Dockerfile index 171aa97..f4531f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,10 @@ COPY . . # Install the package in editable mode RUN pip install -e . +# Create rules backup directory with proper permissions +RUN mkdir -p /app/rules_backup && \ + chmod 777 /app/rules_backup + # Default environment variables ENV ADGUARD_HOST="http://localhost" \ ADGUARD_PORT=3000 @@ -29,5 +33,8 @@ ENV ADGUARD_HOST="http://localhost" \ # Expose the application port EXPOSE 8000 +# Volume for persisting rules backups +VOLUME ["/app/rules_backup"] + # Command to run the application CMD ["python", "-m", "simpleguardhome.main"] \ No newline at end of file