Skip to content

Commit

Permalink
Add documentation for using it with Docker (#1684)
Browse files Browse the repository at this point in the history
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
  • Loading branch information
o-alquimista and nex3 committed May 2, 2022
1 parent 1e211d6 commit 2e7db70
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit 2e7db70

Please sign in to comment.