Skip to content

Instantly share code, notes, and snippets.

@jonlunsford
Last active January 7, 2019 05:16
Show Gist options
  • Save jonlunsford/c318c3c13a02df3c7b11f705d5a0349b to your computer and use it in GitHub Desktop.
Save jonlunsford/c318c3c13a02df3c7b11f705d5a0349b to your computer and use it in GitHub Desktop.
# ./Dockerfile
# ENV matching production target host
FROM ubuntu:18.04
# Mostly locale related env config
# Elixir expects to be built on a system with UTF-8
ENV REFRESHED_AT=2018-08-16 \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
HOME=/opt/build \
TERM=xterm\
DEBIAN_FRONTEND=noninteractive
WORKDIR /opt/build
# Installing erlang, elixir and a few build deps
# Any other sytem requirements your app needs should be present as well
RUN \
apt-get update -y && \
apt-get install -y git wget locales gnupg && \
locale-gen en_US.UTF-8 && \
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
dpkg -i erlang-solutions_1.0_all.deb && \
rm erlang-solutions_1.0_all.deb && \
apt-get update -y && \
apt-get install -y erlang elixir
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment