A docker image to run phoenix application from gitlab ci
1.0K
FROM ubuntu:16.04
MAINTAINER [email protected]
RUN apt-get -y update && \
apt-get install -y curl unzip && \
##################
# INSTALL NODE/NPM
curl -sL https://deb.nodesource.com/setup_7.x | bash - && \
apt-get install -y nodejs && \
npm install -g npm && \
##################
# INSTALL ERLANG
curl -o erlang-packages.deb https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
dpkg -i erlang-packages.deb && \
rm erlang-packages.deb && \
apt-get update -y && \
apt-get install -y erlang && \
##################
# INSTALL ELIXIR
curl --location -o elixir.zip https://github.com/elixir-lang/elixir/releases/download/v1.4.1/Precompiled.zip && \
unzip -d /usr/local elixir.zip && \
rm elixir.zip && \
##################
# INSTALL PHOENIX
mix archive.install --force https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez && \
mix local.rebar --force && \
mix local.hex --force && \
##################
# CLEANUP
apt-get -y clean && \
apt-get purge -y --auto-remove curl unzip && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Content type
Image
Digest
Size
266.7 MB
Last updated
over 9 years ago
docker pull machines/phoenix