diff --git a/docker/mailoney/Dockerfile b/docker/mailoney/Dockerfile index 7429477f..c9866933 100644 --- a/docker/mailoney/Dockerfile +++ b/docker/mailoney/Dockerfile @@ -1,20 +1,18 @@ FROM alpine # Install packages -RUN apk -U upgrade && \ - apk add autoconf \ +RUN apk -U --no-cache add \ + autoconf \ automake \ - bash \ build-base \ git \ libtool \ - procps \ py-pip \ python \ python-dev && \ # Install libemu - git clone https://github.com/buffer/libemu /root/libemu/ && \ + git clone --depth=1 https://github.com/buffer/libemu /root/libemu/ && \ cd /root/libemu/ && \ autoreconf -vi && \ ./configure && \ @@ -22,23 +20,24 @@ RUN apk -U upgrade && \ make install && \ # Install libemu python wrapper - pip install pylibemu && \ + pip install --no-cache-dir --upgrade pip && \ + pip install --no-cache-dir pylibemu && \ # Install mailoney from git - git clone https://github.com/awhitehatter/mailoney /opt/mailoney && \ + git clone --depth=1 https://github.com/awhitehatter/mailoney /opt/mailoney && \ # Setup user, groups and configs addgroup -g 2000 mailoney && \ - adduser -S -H -s /bin/bash -u 2000 -D -g 2000 mailoney && \ + adduser -S -H -s /bin/ash -u 2000 -D -g 2000 mailoney && \ chown -R mailoney:mailoney /opt/mailoney && \ # Clean up - apk del autoconf \ - automake \ - build-base \ - git \ - py-pip \ - python-dev && \ + apk del --purge autoconf \ + automake \ + build-base \ + git \ + py-pip \ + python-dev && \ rm -rf /root/* && \ rm -rf /var/cache/apk/* diff --git a/docker/mailoney/docker-compose.yml b/docker/mailoney/docker-compose.yml index 52296e2e..b1ee7485 100644 --- a/docker/mailoney/docker-compose.yml +++ b/docker/mailoney/docker-compose.yml @@ -1,4 +1,4 @@ -version: '2.2' +version: '2.3' networks: mailoney_local: