2022-01-11 13:49:43 +01:00
|
|
|
# Elixir + Phoenix
|
|
|
|
|
2023-02-19 14:37:32 +01:00
|
|
|
FROM elixir:latest
|
2022-01-11 13:49:43 +01:00
|
|
|
|
|
|
|
# Install debian packages
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install --yes build-essential inotify-tools postgresql-client
|
|
|
|
|
|
|
|
# Install Phoenix packages
|
|
|
|
RUN mix local.hex --force
|
|
|
|
RUN mix local.rebar --force
|
|
|
|
RUN mix archive.install hex phx_new --force
|
|
|
|
|
|
|
|
COPY setup.sh /usr/local/bin/
|
2023-02-19 14:37:32 +01:00
|
|
|
RUN chmod +x /usr/local/bin/setup.sh
|
2022-01-11 13:49:43 +01:00
|
|
|
EXPOSE 4012
|
|
|
|
ENTRYPOINT ["setup.sh"]
|