Dockerfile.dev 535 B

123456789101112131415161718192021
  1. FROM elixir:latest
  2. # Set environment variables for building the application
  3. ENV MIX_ENV=dev \
  4. TEST=1 \
  5. LANG=C.UTF-8
  6. RUN apt-get update && \
  7. apt-get install -y postgresql-client && \
  8. apt-get install -y inotify-tools && \
  9. apt-get install -y nodejs && \
  10. curl -L https://npmjs.org/install.sh | sh && \
  11. mix local.hex --force && \
  12. mix archive.install hex phx_new 1.5.3 --force && \
  13. mix local.rebar --force
  14. # Create the application build directory
  15. RUN mkdir /app
  16. WORKDIR /app
  17. CMD ["mix", "phx.server"]