mirror of
https://github.com/MrUnknownDE/utools.git
synced 2026-04-19 06:03:45 +02:00
set cache to 7 days
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user