Skip to content

Commit 838663b

Browse files
authored
Merge pull request #3 from alan-turing-institute/fix-filepermissions
Fix file permissions
2 parents 37a4f70 + c9c5c2d commit 838663b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ RUN mkdir -p /app/allowlists && \
2222
rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d && \
2323
ln -sf /app/allowlists /etc/squid-deb-proxy/mirror-dstdomain.acl.d
2424

25+
# Set correct file permissions
26+
RUN touch /var/log/squid-deb-proxy/access.log && \
27+
touch /var/log/squid-deb-proxy/cache.log && \
28+
touch /var/log/squid-deb-proxy/store.log && \
29+
chown -R proxy:proxy /var/log/squid-deb-proxy
30+
2531
EXPOSE 8000/tcp
2632

2733
ENTRYPOINT ["/app/entrypoint.sh"]

0 commit comments

Comments
 (0)