Add dummy DATABASE_URL for asset precompile in Docker build

This commit is contained in:
End 2026-04-01 20:06:31 -07:00
parent 5f72eed549
commit 222c71471e
No known key found for this signature in database

View file

@ -43,6 +43,9 @@ ENV BUNDLE_DEPLOYMENT="1" \
# Throw-away build stage to reduce size of final image
FROM base AS build
# Dummy DATABASE_URL so Rails can boot during asset precompile (no real DB needed)
ENV DATABASE_URL=postgresql://localhost/dummy
ARG LIBHEIF_VERSION=1.21.2
ARG LIBHEIF_SHA256=79996de959d28ca82ef070c382304683f5cdaf04cbe2953a74587160a3710a36
# Install packages needed to build gems