Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dockerfile:
FROM marcelocg/phoenix:latest
ADD . /code/elixir_service
RUN cd /code/elixir_service; \
# mix phoenix.new /code/elixir_service --no-ecto \ # only for brand new projects
mix local.hex --force \
mix deps.get --force \
npm install \
node node_modules/brunch/bin/brunch build \
EXPOSE 4000
CMD "mix phoenix.server"
Terminal Output:
• docker build -t elixir_service:latest . elixir_service master ✭ ✱
Sending build context to Docker daemon 25.24 MB
Step 1 : FROM marcelocg/phoenix:latest
---> 32b35dbe32a1
Step 2 : ADD . /code/elixir_service
---> 6ef153f61fdc
Removing intermediate container 4008022b52d5
Step 3 : RUN cd /code/elixir_service; mix local.hex --force mix deps.get --force npm install node node_modules/brunch/bin/brunch build EXPOSE 4000
---> Running in ee7434e28feb
** (Mix) Unexpected arguments.
Usage: mix archive.install <path or url>
The command '/bin/sh -c cd /code/elixir_service; mix local.hex --force mix deps.get --force npm install node node_modules/brunch/bin/brunch build EXPOSE 4000' returned a non-zero code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.