Fix Dockerfile build order for phoenix-colocated
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
The phoenix-colocated JS files are generated during Elixir compilation. Reordered steps to: 1. Compile Elixir code (generates phoenix-colocated files) 2. Copy assets 3. Deploy assets (esbuild can now find phoenix-colocated imports) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5da1762266
commit
5feb386963
1 changed files with 6 additions and 4 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -23,14 +23,16 @@ RUN mix deps.compile
|
||||||
COPY config config
|
COPY config config
|
||||||
COPY priv priv
|
COPY priv priv
|
||||||
COPY lib lib
|
COPY lib lib
|
||||||
|
|
||||||
|
# Compile the project (generates phoenix-colocated files)
|
||||||
|
RUN mix compile
|
||||||
|
|
||||||
|
# Copy assets after compilation
|
||||||
COPY assets assets
|
COPY assets assets
|
||||||
|
|
||||||
# Compile assets
|
# Compile and deploy assets
|
||||||
RUN mix assets.deploy
|
RUN mix assets.deploy
|
||||||
|
|
||||||
# Compile the project
|
|
||||||
RUN mix compile
|
|
||||||
|
|
||||||
# Build release
|
# Build release
|
||||||
RUN mix release
|
RUN mix release
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue