简体   繁体   English

Docker Elixir混合'找不到命令'

[英]Docker Elixir mix 'command not found'

Trying to set up docker with a new Phoenix/Elixir app. 尝试使用新的Phoenix / Elixir应用程序设置docker。 I've shared the Dockerfile I'm using below. 我在下面共享了我正在使用的Dockerfile。

When I run docker-compose up with this Dockerfile, I get errors that say "mix does not exist". 当我使用此Dockerfile运行docker docker-compose up ,出现错误,提示“混合不存在”。

I'm working from this link. 我正在通过此链接进行工作。 https://medium.com/@hex337/running-a-phoenix-1-3-project-with-docker-compose-d82ab55e43cf https://medium.com/@hex337/running-a-phoenix-1-3-project-with-docker-compose-d82ab55e43cf

Thanks! 谢谢!

# Elixir + Phoenix

FROM elixir:1.6.1
FROM node:8.2

# Install debian packages
RUN apt-get update
RUN apt-get install --yes build-essential inotify-tools postgresql-client

# Install Phoenix packages

RUN mix local.hex --force
RUN mix local.rebar --force
RUN mix archive.install --force https://github.com/phoenixframework/archives/raw/master/phx_new.ez


WORKDIR /app
EXPOSE 4000

You're having multiple FROM . 您有多个FROM And the latest one FROM node:8.2 is the one being used. 最近使用的是一个FROM node:8.2 Simply remove it. 只需将其删除。

Otherwise, if you put it there with purpose - you need to explain why. 否则,如果您故意放在那里-您需要解释原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM