(simatec) Fix Dockerfile
This commit is contained in:
parent
70d4517133
commit
b5b900f815
2 changed files with 6 additions and 4 deletions
|
@ -33,7 +33,8 @@ RUN apt-get update && \
|
|||
ln -sf /etc/piler/piler-nginx.conf /etc/nginx/sites-enabled && \
|
||||
echo "www-data ALL=NOPASSWD: /etc/init.d/rc.piler reload" > /etc/sudoers.d/piler && \
|
||||
rm -f ${PACKAGE}_${TARGETARCH}.deb /etc/nginx/sites-enabled/default /etc/piler/piler.key /etc/piler/piler.pem /etc/piler/config-site.php && \
|
||||
crontab -u $PILER_USER /usr/share/piler/piler.cron
|
||||
crontab -u $PILER_USER /usr/share/piler/piler.cron \
|
||||
sed -i '/imklog/s/^/#/' /etc/rsyslog.conf
|
||||
|
||||
VOLUME ["/etc/piler","/var/piler/store","/var/piler/manticore","/var/piler/imap","/var/piler/stat","/var/spool/cron/crontabs"]
|
||||
|
||||
|
@ -44,8 +45,7 @@ EXPOSE 443/tcp
|
|||
# Clean up APT when done.
|
||||
RUN apt clean && \
|
||||
apt autoremove && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
||||
sed -i '/imklog/s/^/#/' /etc/rsyslog.conf
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
COPY start.sh /start.sh
|
||||
|
||||
|
|
|
@ -190,7 +190,9 @@ start_services() {
|
|||
service cron start
|
||||
service php8.3-fpm start
|
||||
service nginx start
|
||||
rsyslogd
|
||||
#rsyslogd
|
||||
rm -f /run/rsyslogd.pid
|
||||
service rsyslog start
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue