set cache to 7 days

This commit is contained in:
2026-03-05 20:20:31 +01:00
parent f21b06e6ad
commit b226b81775
4 changed files with 48 additions and 13 deletions

View File

@@ -37,8 +37,13 @@ COPY ./data ./data
# Create a non-root user and group
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
# Optional: Change ownership of app files to the new user
# RUN chown -R appuser:appgroup /app
# Create ASN cache directory and set correct ownership BEFORE switching user
# This ensures the Docker volume mount is writable by appuser
RUN mkdir -p /app/asn-cache && chown -R appuser:appgroup /app/asn-cache
# Change ownership of all app files to the new user
RUN chown -R appuser:appgroup /app
# Switch to the non-root user
USER appuser