mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
40 lines
1.1 KiB
Smarty
40 lines
1.1 KiB
Smarty
FROM node:18.13.0-alpine
|
|
USER root
|
|
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
|
|
|
RUN npm -g config set user root
|
|
RUN apk add bash
|
|
|
|
# install dependence
|
|
RUN apk upgrade --update && \
|
|
apk add --no-cache -t .fetch-deps \
|
|
autoconf \
|
|
g++ \
|
|
bash \
|
|
curl \
|
|
gcc \
|
|
make \
|
|
python3 && \
|
|
addgroup -g 88 -S smtp && \
|
|
adduser -u 88 -D -S -G smtp -h /harakaapp smtp && \
|
|
# Install haraka and toobusy package
|
|
npm install -g --unsafe-perm Haraka toobusy-js && \
|
|
# # Cleaning up
|
|
apk del --purge -r .fetch-deps && \
|
|
apk add --no-cache tzdata openssl execline ca-certificates && \
|
|
rm -rf /var/cache/apk/* /tmp/* ~/.pearrc
|
|
|
|
RUN haraka -i /harakaapp
|
|
|
|
COPY ./Haraka/config/plugins /harakaapp/config/plugins
|
|
COPY ./Haraka/config/smtp.ini /harakaapp/config/smtp.ini
|
|
COPY ./Haraka/config/tls.ini /harakaapp/config/tls.ini
|
|
COPY ./Haraka/config/auth_flat_file.ini /harakaapp/config/auth_flat_file.ini
|
|
COPY ./Haraka/config/dkim_sign.ini /harakaapp/config/dkim_sign.ini
|
|
|
|
COPY ./Haraka/init.sh /init.sh
|
|
RUN chmod 755 /init.sh
|
|
|
|
EXPOSE 2525
|
|
|
|
CMD ["/init.sh"] |