anchor.diff:      git clean -ffxd && \
       make rel
   
  -FROM phusion/baseimage:focal-1.0.0
  +FROM base-image
   MAINTAINER Erlang Solutions <mongoose-im@erlang-solutions.com>
   
   RUN useradd -ms /bin/bash amoc
  
positive.code: FROM phusion/baseimage:focal-1.0.0 as amoc-build
  
  RUN apt-get update && \
      apt-get install -y --no-install-recommends \
                      git make wget gnupg
  
  ARG otp_vsn=24.0-1
  
  RUN wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && \
      dpkg -i erlang-solutions_2.0_all.deb && \
      apt-get update && \
      apt-get install -y esl-erlang=1:${otp_vsn}
  
  COPY . /amoc_build
  
  
negative.code: EXPOSE 4000
  
  RUN mkdir /etc/service/amoc
  COPY docker/amoc.sh /etc/service/amoc/run
  
  CMD ["/sbin/my_init"]
  