Sha256: d2b0d512f3090aeb543309ce0a798fe92cf4887a1ab21e4dd91e80fa0533f84c

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

FROM resin/%%RESIN_MACHINE_NAME%%-debian:jessie
ENV PATH /opt/elixir/bin:$PATH
ENV LANG C.UTF-8
ENV MIX_ENV production
RUN apt-get update && apt-get install -y \
    less \
    vim \
    tree \
    curl \
    unzip \
    git \
    ca-certificates \
    build-essential \
  && echo "deb http://packages.erlang-solutions.com/debian wheezy contrib" >> /etc/apt/sources.list \
  && curl 'http://packages.erlang-solutions.com/debian/erlang_solutions.asc' -o 'esolutions.asc' \
  && apt-key add esolutions.asc \
  && rm esolutions.asc \
  && apt-get update \
  && apt-get install -y --force-yes erlang-mini \
  && mkdir /opt/elixir \
  && curl -k -L https://github.com/elixir-lang/elixir/releases/download/v1.2.4/Precompiled.zip -o /opt/elixir/precompiled.zip \
  && cd /opt/elixir \
  && unzip precompiled.zip \
  && mix local.hex --force \
  && mix local.rebar --force \
  && rm -rf /var/lib/apt/lists/*
COPY . /app
WORKDIR /app
RUN mix hex.registry fetch && mix deps.get && mix compile
CMD modprobe w1-gpio && modprobe w1-therm && elixir -S mix run --no-halt --no-deps-check

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
milk_maid-0.6.1 Dockerfile.template