Skip to content
Snippets Groups Projects
Verified Commit b0bea40c authored by Thomas Downes's avatar Thomas Downes Committed by Tanner Prestegard
Browse files

Cleanup file permissions inside containerized application directory

parent d2224447
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,11 @@ RUN rm -rf /app/logs/* /app/project_data/*
RUN useradd -M -u 50001 -g www-data -s /bin/false gracedb
# set secure file/directory permissions. In particular, ADD command at
# beginning of recipe inherits umask of user running the build
RUN chown gracedb:www-data /app/logs /app/project_data && \
chmod 0750 /app/logs /app/project_data
chmod 0750 /app/logs /app/project_data && \
find /app/gracedb_project -type d -exec chmod 0755 {} + && \
find /app/gracedb_project -type f -exec chmod 0644 {} +
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment