mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2026-06-07 00:34:48 -04:00
fix subscriptions feature for php8 and add mailhog
This commit is contained in:
+12
-1
@@ -18,4 +18,15 @@ RUN apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev li
|
||||
RUN apt-get install -y locales
|
||||
RUN locale-gen en_GB.UTF-8
|
||||
RUN sed -i '/en_GB.UTF-8/s/^# //g' /etc/locale.gen && \
|
||||
locale-gen
|
||||
locale-gen
|
||||
RUN apt-get install -y curl
|
||||
# And clean up the image
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -Lsf 'https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz' | tar -C '/usr/local' -xvzf -
|
||||
ENV PATH /usr/local/go/bin:$PATH
|
||||
RUN go get github.com/mailhog/mhsendmail
|
||||
RUN cp /root/go/bin/mhsendmail /usr/bin/mhsendmail
|
||||
RUN echo 'sendmail_path = /usr/bin/mhsendmail --smtp-addr mailhog:1025' > /usr/local/etc/php/php.ini
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user