From ca9f7dbad9c5185d15c528966a5137c17fa8fece Mon Sep 17 00:00:00 2001 From: hisa Date: Thu, 11 Aug 2016 19:26:06 -0400 Subject: [PATCH] Add RUN rm -rf deps/*/.fetch to Docker file avoid mix asking to deps.compile when running a container --- Dockerfile | 4 ++++ README.md | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99d7dd3..f5fb18a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,4 +70,8 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN rm -f /etc/service/sshd/down RUN /etc/my_init.d/00_regen_ssh_host_keys.sh +# Make mix don't ask for deps.compile again when starting container +# See: https://github.com/elixir-lang/elixir/issues/5130 +RUN rm -rf deps/*/.fetch + MAINTAINER Iporaitech diff --git a/README.md b/README.md index 43c8e03..1dab344 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,6 @@ Once switched to **app** user and in the `APP_HOME` directory, you can start the Now you're ready to start making requests to the web app on the port you specified. -> NOTICE that although deps are compiled when [building the image](Dockerfile#L49) the first time you start your phoenix.server all deps compiled again. We've created an [issue](https://github.com/elixir-lang/elixir/issues/5130) on Elixir repo to see if they can help us with this. - ### Setup cloning this GitHub repo and building the image 1. Clone the project to your localhost (_you might want to fork it to your account before_)