Skip to content

Instantly share code, notes, and snippets.

@net

net/Dockerfile Secret

Created May 9, 2017 00:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save net/1d4ef3031cc317d6b8a4560e30457425 to your computer and use it in GitHub Desktop.
Save net/1d4ef3031cc317d6b8a4560e30457425 to your computer and use it in GitHub Desktop.
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