16 lines
359 B
Docker
16 lines
359 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache isync cron python3 ca-certificates bash su-exec tzdata
|
|
|
|
# Copy configuration template and entrypoint
|
|
COPY mbsyncrc.template /root/.mbsyncrc.template
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# Create the Maildir directory
|
|
RUN mkdir -p /Maildir
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["cron", "-f"]
|