File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change 1- # Build stage - for CSS generation only
2- FROM python:3.13.7-slim AS builder
1+ # Build stage - for CSS generation only (forced to amd64 for tool availability)
2+ FROM --platform=linux/amd64 python:3.13.7-slim AS builder
33
44# Install build dependencies for Tailwind CSS
55RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -8,19 +8,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
88
99# Tailwind CSS version (renovate: datasource=github-releases depName=tailwindlabs/tailwindcss)
1010ARG TAILWIND_VERSION=v4.1.12
11- ARG TARGETPLATFORM
1211
13- # Install architecture-specific Tailwind CSS binary
14- RUN echo "Target platform: ${TARGETPLATFORM} (architecture: $(uname -m))" && \
15- case "${TARGETPLATFORM}" in \
16- "linux/amd64" ) TAILWIND_ARCH="linux-x64" ;; \
17- "linux/arm64" ) TAILWIND_ARCH="linux-arm64" ;; \
18- "linux/arm/v7" ) TAILWIND_ARCH="linux-arm64" ;; \
19- "linux/arm/v6" ) TAILWIND_ARCH="linux-arm64" ;; \
20- "linux/386" ) TAILWIND_ARCH="linux-x64" ;; \
21- *) TAILWIND_ARCH="linux-x64" ;; \
22- esac && \
23- curl -L https://github.com/tailwindlabs/tailwindcss/releases/download/${TAILWIND_VERSION}/tailwindcss-${TAILWIND_ARCH} -o /usr/local/bin/tailwindcss && \
12+ # Install Tailwind CSS binary (always x64 since we're on amd64 platform)
13+ RUN curl -L https://github.com/tailwindlabs/tailwindcss/releases/download/${TAILWIND_VERSION}/tailwindcss-linux-x64 -o /usr/local/bin/tailwindcss && \
2414 chmod +x /usr/local/bin/tailwindcss
2515
2616WORKDIR /app
You can’t perform that action at this time.
0 commit comments