Skip to content

Commit

Permalink
🐛 Make 'proxy' user the owner of log directories
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Apr 29, 2024
1 parent 37a4f70 commit c9c5c2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ RUN mkdir -p /app/allowlists && \
rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d && \
ln -sf /app/allowlists /etc/squid-deb-proxy/mirror-dstdomain.acl.d

# Set correct file permissions
RUN touch /var/log/squid-deb-proxy/access.log && \
touch /var/log/squid-deb-proxy/cache.log && \
touch /var/log/squid-deb-proxy/store.log && \
chown -R proxy:proxy /var/log/squid-deb-proxy

EXPOSE 8000/tcp

ENTRYPOINT ["/app/entrypoint.sh"]

0 comments on commit c9c5c2d

Please sign in to comment.