mirror of
https://github.com/imapsync/imapsync.git
synced 2025-07-20 09:15:53 +02:00
Update Dockerfile
Refactored Dockerfile
This commit is contained in:
parent
1709fee78f
commit
ada6a26888
1 changed files with 46 additions and 56 deletions
|
@ -1,81 +1,72 @@
|
||||||
## Dockerfile for building a docker imapsync image
|
## Dockerfile for building a docker imapsync image
|
||||||
|
|
||||||
# $Id: Dockerfile,v 1.28 2019/12/02 13:19:41 gilles Exp gilles $
|
# $Id: Dockerfile,v 1.30 2020/03/26 07:15:04 gilles Exp gilles $
|
||||||
# I use the following command to build the image:
|
# I use the following command to build the image:
|
||||||
#
|
#
|
||||||
# docker build -t gilleslamiral/imapsync .
|
# docker build -t gilleslamiral/imapsync .
|
||||||
#
|
#
|
||||||
# where this Dockerfile is in the current directory
|
# where this Dockerfile is in the current directory
|
||||||
#
|
#
|
||||||
|
# I thank you very much
|
||||||
# I like thanks
|
# I like thanks
|
||||||
# I like stars
|
# I like stars
|
||||||
# I also like (and need) money
|
# I also like (and need) money
|
||||||
# I thank you very much
|
|
||||||
|
|
||||||
# Number of imapsync images pulled so far (2019_12_02): 32732
|
# Number of imapsync images pulled so far (2020_03_26): 84354
|
||||||
# Command used:
|
# Command used:
|
||||||
# curl -s https://hub.docker.com/v2/repositories/gilleslamiral/imapsync/ | jq '.pull_count'
|
# curl -s https://hub.docker.com/v2/repositories/gilleslamiral/imapsync/ | jq '.pull_count'
|
||||||
|
|
||||||
|
# Ubuntu latest points to current LTS release
|
||||||
|
|
||||||
FROM debian:buster
|
FROM ubuntu:latest
|
||||||
|
|
||||||
LABEL maintainer="Gilles LAMIRAL <gilles@lamiral.info>" \
|
LABEL maintainer="Gilles LAMIRAL <gilles@lamiral.info>" \
|
||||||
description="Imapsync" \
|
description="Imapsync" \
|
||||||
documentation="https://imapsync.lamiral.info/#doc"
|
documentation="https://imapsync.lamiral.info/#doc"
|
||||||
|
|
||||||
# Put a copy of the Dockerfile in the image itself
|
RUN apt-get update && \
|
||||||
# It can help future maintenance, isn't it?
|
apt-get install -y \
|
||||||
|
|
||||||
COPY Dockerfile /
|
|
||||||
|
|
||||||
# Also put my local imapsync on /usr/bin/ for testing purpose
|
|
||||||
# renamed imapsync_local since would be erased by the wget
|
|
||||||
|
|
||||||
COPY imapsync /usr/bin/imapsync_local
|
|
||||||
COPY prerequisites_imapsync /usr/bin/prerequisites_imapsync_local
|
|
||||||
|
|
||||||
RUN set -xe && \
|
|
||||||
apt-get update \
|
|
||||||
&& apt-get install -y \
|
|
||||||
libauthen-ntlm-perl \
|
libauthen-ntlm-perl \
|
||||||
libcgi-pm-perl \
|
libclass-load-perl \
|
||||||
libcrypt-openssl-rsa-perl \
|
libcrypt-ssleay-perl \
|
||||||
libdata-uniqid-perl \
|
libdata-uniqid-perl \
|
||||||
|
libdigest-hmac-perl \
|
||||||
|
libdist-checkconflicts-perl \
|
||||||
libencode-imaputf7-perl \
|
libencode-imaputf7-perl \
|
||||||
libfile-copy-recursive-perl \
|
libfile-copy-recursive-perl \
|
||||||
libfile-tail-perl \
|
libfile-tail-perl \
|
||||||
libio-socket-ssl-perl \
|
libio-compress-perl \
|
||||||
libio-socket-inet6-perl \
|
libio-socket-inet6-perl \
|
||||||
|
libio-socket-ssl-perl \
|
||||||
libio-tee-perl \
|
libio-tee-perl \
|
||||||
libhtml-parser-perl \
|
|
||||||
libjson-webtoken-perl \
|
libjson-webtoken-perl \
|
||||||
libmail-imapclient-perl \
|
libmail-imapclient-perl \
|
||||||
libparse-recdescent-perl \
|
|
||||||
libmodule-scandeps-perl \
|
libmodule-scandeps-perl \
|
||||||
|
libnet-dbus-perl \
|
||||||
|
libnet-ssleay-perl \
|
||||||
libpar-packer-perl \
|
libpar-packer-perl \
|
||||||
libreadonly-perl \
|
libreadonly-perl \
|
||||||
libregexp-common-perl \
|
libregexp-common-perl \
|
||||||
libsys-meminfo-perl \
|
libsys-meminfo-perl \
|
||||||
libterm-readkey-perl \
|
libterm-readkey-perl \
|
||||||
|
libtest-fatal-perl \
|
||||||
|
libtest-mock-guard-perl \
|
||||||
libtest-mockobject-perl \
|
libtest-mockobject-perl \
|
||||||
libtest-pod-perl \
|
libtest-pod-perl \
|
||||||
|
libtest-requires-perl \
|
||||||
|
libtest-simple-perl \
|
||||||
libunicode-string-perl \
|
libunicode-string-perl \
|
||||||
liburi-perl \
|
liburi-perl \
|
||||||
libwww-perl \
|
libtest-nowarnings-perl \
|
||||||
procps \
|
libtest-deep-perl \
|
||||||
wget \
|
libtest-warn-perl \
|
||||||
make \
|
make \
|
||||||
cpanminus \
|
cpanminus \
|
||||||
lsof \
|
wget
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN set -xe \
|
|
||||||
&& pwd \
|
|
||||||
&& wget -N https://imapsync.lamiral.info/imapsync \
|
|
||||||
https://imapsync.lamiral.info/prerequisites_imapsync \
|
|
||||||
&& mv imapsync /usr/bin/imapsync \
|
|
||||||
&& chmod +x /usr/bin/imapsync /usr/bin/imapsync_local # just_a_comment_to_force_update 2019_11_26_12_58_34
|
|
||||||
|
|
||||||
|
RUN wget -N https://imapsync.lamiral.info/imapsync && \
|
||||||
|
mv imapsync /usr/bin/imapsync && \
|
||||||
|
chmod +x /usr/bin/imapsync
|
||||||
|
|
||||||
USER nobody:nogroup
|
USER nobody:nogroup
|
||||||
|
|
||||||
|
@ -89,4 +80,3 @@ CMD ["/usr/bin/imapsync"]
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of imapsync Dockerfile
|
# End of imapsync Dockerfile
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue