This commit is contained in:
@@ -44,6 +44,11 @@ RUN useradd -m puppeteer && chown -R puppeteer:puppeteer /app
|
||||
# Create the database directory and set permissions
|
||||
RUN mkdir -p /db && chmod 777 /db && chown -R puppeteer:puppeteer /app
|
||||
|
||||
# Add system limits configuration
|
||||
RUN echo "* soft nofile 65535" >> /etc/security/limits.conf && \
|
||||
echo "* hard nofile 65535" >> /etc/security/limits.conf && \
|
||||
echo "session required pam_limits.so" >> /etc/pam.d/common-session
|
||||
|
||||
USER puppeteer
|
||||
|
||||
# Expose port
|
||||
|
||||
Reference in New Issue
Block a user