diff options
author | Markus Witt <feuerrot@feuerrot.org> | 2019-04-14 01:00:40 +0200 |
---|---|---|
committer | Markus Witt <feuerrot@feuerrot.org> | 2019-05-03 22:36:12 +0200 |
commit | 45410607d3c1142ade18f884f3c2a4a2a18a1b73 (patch) | |
tree | 931330ba63748ed4eb3803939e4a9bee964bf78c /Dockerfile | |
parent | 386d56a20e2ba1f98bde896897cc4e96b6dd75dc (diff) |
dockerfile: remove cpanm (+workdir) & build-essentials to save space
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,13 +1,14 @@ FROM debian:stretch -RUN apt-get update && apt-get install -y \ +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install --no-install-recommends -y \ cpanminus \ build-essential \ libpq-dev \ git \ - ssmtp - -RUN cpanm -in \ + ssmtp \ + && cpanm -in \ Cache::File \ Crypt::Eksblowfish \ DateTime \ @@ -21,10 +22,14 @@ RUN cpanm -in \ Mojolicious::Plugin::Authentication \ Travel::Status::DE::IRIS \ UUID::Tiny \ - JSON + JSON \ + && rm -rf ~/.cpanm \ + && apt-get purge -y \ + build-essential \ + cpanminus \ + && apt-get autoremove -y COPY . /app WORKDIR /app - CMD /app/docker-run.sh
\ No newline at end of file |