Using compose's develop

This commit is contained in:
2026-02-01 15:58:14 +02:00
parent 4ad9c8e2ab
commit 94d601a458
2 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -1,15 +1,15 @@
FROM elixir:1.19.5-otp-27 AS base
WORKDIR /app
COPY mix.* /app
RUN apt-get update && apt-get install -y cmake
FROM base AS dev
COPY docker-entrypoint.sh /app
VOLUME /app/mix.exs /app/mix.lock /app/_build /app/deps /app/config /app/lib /app/test
VOLUME /app/_build /app/deps /app/config /app/lib /app/test
ENV SNAME="srv" COOKIE="cookie"
CMD ["/bin/sh", "/app/docker-entrypoint.sh"]
FROM base AS builder
COPY mix.* /app
RUN mix do deps.get + deps.compile
+7 -2
View File
@@ -3,9 +3,14 @@ services:
build:
context: .
target: dev
develop:
watch:
- path: ./
include: "mix.*"
target: "/app"
action: sync+restart
initial_sync: true
volumes:
- "./mix.exs:/app/mix.exs"
- "./mix.lock:/app/mix.lock"
- "app_build:/app/_build"
- "app_deps:/app_deps"
- "./config:/app/config"