Fix bootstrap of app in docker

This commit is contained in:
Alex Lion
2025-07-02 23:39:18 +02:00
parent 2880275df9
commit fa9d92ade5
3 changed files with 2 additions and 5 deletions

View File

@@ -1,2 +0,0 @@
erlang 26.2.5.6
elixir 1.18.0-otp-26

View File

@@ -87,4 +87,4 @@ ENV ERL_FLAGS=$ERL_FLAGS
EXPOSE 4000
USER root
WORKDIR /app
ENTRYPOINT ["mix", "phx.server"]
ENTRYPOINT ["bash", "-c", "mix deps.get && mix ecto.migrate && cd assets && npm i && cd .. && mix phx.server"]

View File

@@ -32,8 +32,7 @@ services:
- ".:/app"
env_file: .env
depends_on:
db:
condition: service_healthy
- db
networks:
- claper-dev