-
-
Save net/1d4ef3031cc317d6b8a4560e30457425 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN \ | |
apt-get update && \ | |
apt-get install -y wget curl | |
RUN \ | |
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \ | |
dpkg -i erlang-solutions_1.0_all.deb && \ | |
apt-get update && \ | |
apt-get install -y esl-erlang elixir build-essential openssh-server git | |
RUN \ | |
apt-get update && \ | |
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \ | |
apt-get install -y nodejs | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV LANGUAGE en_US:en | |
ENV LC_ALL en_US.UTF-8 | |
RUN mkdir /var/run/sshd | |
RUN useradd --system --shell=/bin/bash --create-home builder | |
COPY ssh_key.pub /home/builder/.ssh/authorized_keys | |
RUN mix local.hex | |
RUN mix local.rebar | |
COPY config/prod.secret.exs /home/builder/prod.secret.exs | |
CMD ["/usr/sbin/sshd", "-D"] | |
EXPOSE 22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment