This commit is contained in:
15
mail-sync/Dockerfile
Normal file
15
mail-sync/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user