diff --git a/Dockerfile b/Dockerfile index dd01e5b..31f95e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,6 @@ WORKDIR /app COPY . . # Compile the application -ENV MIX_HOME=/app/.mix RUN mix local.hex --force && mix local.rebar --force RUN mix deps.get --only prod RUN MIX_ENV=prod mix compile @@ -29,6 +28,7 @@ RUN MIX_ENV=prod mix phx.swagger.generate # Run as the isidore-dev user USER 1008 +RUN mix local.hex --force && mix local.rebar --force # Set environment variables for the application ENV PORT=4000