Skip to content

Commit

Permalink
Dockerfile: Fix Tailwind CLI link for amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
jareddantis committed Mar 31, 2024
1 parent 08671b6 commit 11d8887
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --without dev

# Compile Tailwind CSS
RUN echo "Downloading Tailwind CLI for ${TARGETARCH}" && \
if [ "${TARGETARCH}" = "arm64" ]; then \
curl -sL https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-arm64 -o ./tailwindcss; \
if [ "${TARGETARCH}" = "amd64" ]; then \
curl -sL https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 -o ./tailwindcss; \
else \
echo "Downloading amd64 version of Tailwind CSS"; \
curl -sL https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-amd64 -o ./tailwindcss; \
curl -sL https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-${TARGETARCH} -o ./tailwindcss; \
fi && \
chmod +x ./tailwindcss && \
./tailwindcss -i ./base.css -o ./main.css --minify
Expand Down

0 comments on commit 11d8887

Please sign in to comment.