summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMarkus Witt <feuerrot@feuerrot.org>2019-05-03 22:50:59 +0200
committerMarkus Witt <feuerrot@feuerrot.org>2019-05-03 22:50:59 +0200
commit2b5780499c3e00e1969c461b864994757a21a8d8 (patch)
tree695bfb16ec179debf7aebd74e9f82dd881cba7a1 /Dockerfile
parent46e85324df762672718c0a6a5ca60fb247e89e5d (diff)
use cpanfile to install dependencies, run worker in another docker container
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile23
1 files changed, 5 insertions, 18 deletions
diff --git a/Dockerfile b/Dockerfile
index b7067b9..289660a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"]