diff options
author | Markus Witt <feuerrot@feuerrot.org> | 2019-05-03 22:50:59 +0200 |
---|---|---|
committer | Markus Witt <feuerrot@feuerrot.org> | 2019-05-03 22:50:59 +0200 |
commit | 2b5780499c3e00e1969c461b864994757a21a8d8 (patch) | |
tree | 695bfb16ec179debf7aebd74e9f82dd881cba7a1 /Dockerfile | |
parent | 46e85324df762672718c0a6a5ca60fb247e89e5d (diff) |
use cpanfile to install dependencies, run worker in another docker container
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 23 |
1 files changed, 5 insertions, 18 deletions
@@ -2,28 +2,16 @@ FROM debian:stretch-slim ARG DEBIAN_FRONTEND=noninteractive +COPY cpanfile /app/cpanfile +WORKDIR /app + RUN apt-get update && apt-get install --no-install-recommends -y \ cpanminus \ build-essential \ libpq-dev \ git \ - ssmtp \ - && cpanm -in --no-man-pages \ - Cache::File \ - Crypt::Eksblowfish \ - DateTime \ - DateTime::Format::Strptime \ - DBI \ - DBD::Pg \ - Email::Sender \ - Geo::Distance \ - Geo::Distance::XS \ - Mojolicious \ - Mojolicious::Plugin::Authentication \ - Travel::Status::DE::IRIS \ - UUID::Tiny \ - JSON \ - Mojo::Pg \ + cron \ + && cpanm -in --no-man-pages --installdeps . \ && rm -rf ~/.cpanm \ && apt-get purge -y \ build-essential \ @@ -31,6 +19,5 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ && apt-get autoremove -y COPY . /app -WORKDIR /app CMD ["/app/docker-run.sh"] |