Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for using it with Docker #1684

Merged
merged 2 commits into from May 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Expand Up @@ -35,6 +35,7 @@ A [Dart][dart] implementation of [Sass][sass]. **Sass makes CSS fun again**.
* [From Pub](#from-pub)
* [`sass_api` Package](#sass_api-package)
* [From Source](#from-source)
* [In Docker](#in-docker)
* [Why Dart?](#why-dart)
* [Compatibility Policy](#compatibility-policy)
* [Browser Compatibility](#browser-compatibility)
Expand Down Expand Up @@ -184,6 +185,23 @@ Assuming you've already checked out this repository:

That's it!

### In Docker

You can install and run Dart Sass within Docker using the following Dockerfile
commands:

```Dockerfile
# Dart stage
FROM dart:stable AS dart

COPY --from=another_stage /app /app

WORKDIR /dart-sass
RUN git clone https://github.com/sass/dart-sass.git . && \
dart pub get && \
dart ./bin/sass.dart /app/sass/example.scss /app/public/css/example.css
```

## Why Dart?

Dart Sass has replaced Ruby Sass as the canonical implementation of the Sass
Expand Down