diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..289660a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +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 \ + cron \ + && cpanm -in --no-man-pages --installdeps . \ + && rm -rf ~/.cpanm \ + && apt-get purge -y \ + build-essential \ + cpanminus \ + && apt-get autoremove -y + +COPY . /app + +CMD ["/app/docker-run.sh"] |