28 lines
448 B
Docker
28 lines
448 B
Docker
FROM hexpm/elixir:1.18.4-erlang-26.2.5.18-debian-bookworm-20260223-slim
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
git \
|
|
curl \
|
|
inotify-tools \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mix local.hex --force && \
|
|
mix local.rebar --force
|
|
|
|
COPY mix.exs mix.lock ./
|
|
RUN mix deps.get
|
|
|
|
COPY config config
|
|
COPY assets assets
|
|
COPY lib lib
|
|
COPY priv priv
|
|
|
|
RUN mix assets.setup
|
|
|
|
EXPOSE 4000
|
|
|
|
CMD ["mix", "phx.server"]
|