2020-08-18 15:17:53 -07:00
|
|
|
FROM elixir:1.10
|
|
|
|
|
|
|
|
|
|
# XXX #
|
|
|
|
|
# Rust is required because of the "meeseeks" dependency because it uses a Rust
|
|
|
|
|
# library for some reason. I'll start looking for alternatives so we don't have
|
|
|
|
|
# to worry about installing it in the future because that is not a small
|
|
|
|
|
# dependency.
|
|
|
|
|
|
|
|
|
|
# It's impossible to pass a command line parameter (-y) to a shell script being
|
|
|
|
|
# read through stdin, so this line downloads, runs, and removes that script.
|
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh && \
|
|
|
|
|
chmod +x /tmp/rustup.sh && \
|
|
|
|
|
/tmp/rustup.sh -y && \
|
|
|
|
|
rm /tmp/rustup.sh
|
|
|
|
|
|
|
|
|
|
# Also set the PATH to include /root/.cargo/bin, where Rust was installed to
|
|
|
|
|
ENV PATH="/root/.cargo/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
# END XXX #
|
|
|
|
|
|
|
|
|
|
RUN mkdir /app
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2020-08-18 15:44:13 -07:00
|
|
|
|
2020-08-18 15:17:53 -07:00
|
|
|
RUN mix local.hex --force
|
2020-08-18 15:44:13 -07:00
|
|
|
RUN mix local.rebar --force
|
2020-08-18 15:17:53 -07:00
|
|
|
|
2020-08-18 17:30:21 -07:00
|
|
|
CMD mix deps.get && mix run --no-halt
|