Skip to content

Commit 41c5014

Browse files
committed
fix: 🐛 Update Dockerfile to enforce amd64 platform for Tailwind CSS installation
1 parent c6188f6 commit 41c5014

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

Dockerfile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
55
RUN 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)
1010
ARG 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

2616
WORKDIR /app

0 commit comments

Comments
 (0)