-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (32 loc) · 1.42 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM cryptopath/alpine:3.8
# set version, revision and build-date labels
ARG VERSION="dev"
ARG REVISION="HEAD"
ARG BUILD_DATE="unknown"
# metadata as defined in Open Container Initiative (OCI) annotations specs
# -> https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL org.opencontainers.image.title="cryptopath/offlineimap" \
org.opencontainers.image.description="Nicely configurable OfflineIMAP and Cron based on an Alpine docker image" \
org.opencontainers.image.vendor="Cryptopath" \
org.opencontainers.image.authors="CeRiAl <[email protected]>" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://hub.docker.com/r/cryptopath/offlineimap/" \
org.opencontainers.image.documentation="https://github.com/CeRiAl/docker-offlineimap#readme" \
org.opencontainers.image.source="https://github.com/CeRiAl/docker-offlineimap" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.revision="${REVISION}" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.ref.name="cryptopath-offlineimap-${VERSION}"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
offlineimap
# copy local files
COPY root/ /
# environment
ENV CONFIG_PATH="/vol/config" \
SECRETS_PATH="/vol/secrets" \
MAIL_PATH="/vol/mail" \
CRON_SCHEDULE="0 3 * * *"
# volumes
VOLUME /vol