mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
46 lines
1.2 KiB
Smarty
46 lines
1.2 KiB
Smarty
FROM node:current-alpine
|
|
USER root
|
|
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
|
|
|
|
|
ARG GIT_SHA
|
|
ARG APP_VERSION
|
|
|
|
ENV GIT_SHA=${GIT_SHA}
|
|
ENV APP_VERSION=${APP_VERSION}
|
|
|
|
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"] |