Skip to content

rails assets:precompile gives error: tailwindcss-rails does not support the x86_64-linux platform #200

Closed
@deflexor

Description

@deflexor

Dockerfile:

FROM ruby:3.1.2-alpine
WORKDIR /app
COPY . .
RUN apk add --update --no-cache build-base gcc g++ git less tzdata \
  libstdc++ libffi-dev libc-dev sqlite-dev postgresql-dev build-base gcompat
RUN gem install bundler
RUN bundle lock --add-platform x86_64-linux
RUN bundle --verbose
ENV RAILS_ENV=production
RUN bundle exec rails assets:clean assets:precompile
EXPOSE 3000
CMD ["rails", "server", "-b", "0.0.0.0"]

Results in error:

Tailwindcss::Commands::UnsupportedPlatformException: tailwindcss-rails does not support the x86_64-linux platform

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions