Remove npm from Dockerfile - Phoenix uses esbuild/tailwind
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run

Modern Phoenix apps don't use npm. They use standalone esbuild and
tailwind binaries. Removed npm installation and npm ci/deploy commands.
The mix assets.deploy task handles all asset compilation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Kevin Sivic 2025-11-28 22:00:00 -05:00
parent da6739f7cc
commit 5da1762266

View file

@ -2,7 +2,7 @@
FROM elixir:1.17-alpine AS build
# Install build dependencies
RUN apk add --no-cache build-base git nodejs npm
RUN apk add --no-cache build-base git
# Prepare build dir
WORKDIR /app
@ -26,8 +26,6 @@ COPY lib lib
COPY assets assets
# Compile assets
RUN npm ci --prefix ./assets
RUN npm run deploy --prefix ./assets
RUN mix assets.deploy
# Compile the project