File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ RUN go mod download && go mod verify
1111COPY . .
1212
1313# Download Tailwind CSS CLI (use v3 for compatibility)
14- RUN curl -sL https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.16/tailwindcss-linux-x64 -o /tmp/tailwindcss && \
14+ RUN ARCH=$(uname -m) && \
15+ if [ "$ARCH" = "x86_64" ]; then TAILWIND_ARCH="x64" ; \
16+ elif [ "$ARCH" = "aarch64" ]; then TAILWIND_ARCH="arm64" ; \
17+ else echo "Unsupported architecture: $ARCH" && exit 1; fi && \
18+ curl -sL https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.16/tailwindcss-linux-${TAILWIND_ARCH} -o /tmp/tailwindcss && \
1519 chmod +x /tmp/tailwindcss
1620
1721# Build CSS
@@ -22,12 +26,12 @@ ARG VERSION="dev"
2226ARG COMMIT="unknown"
2327ARG BUILD_DATE="unknown"
2428
25- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
29+ RUN CGO_ENABLED=0 GOOS=linux go build \
2630 -a -installsuffix cgo \
2731 -ldflags="-w -s -X main.Version=${VERSION} -X main.Commit=${COMMIT} -X main.BuildDate=${BUILD_DATE}" \
2832 -o ackify ./cmd/community
2933
30- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
34+ RUN CGO_ENABLED=0 GOOS=linux go build \
3135 -a -installsuffix cgo \
3236 -ldflags="-w -s" \
3337 -o migrate ./cmd/migrate
You can’t perform that action at this time.
0 commit comments