From 2ebdaec3e9085e6f39a6577395f45166e176a534 Mon Sep 17 00:00:00 2001 From: Douglas Silva Date: Wed, 27 Apr 2022 12:54:11 -0300 Subject: [PATCH 1/2] Add 'using with Docker' section --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 932e0e264..54125973f 100644 --- a/README.md +++ b/README.md @@ -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) + * [Docker](#docker) * [Why Dart?](#why-dart) * [Compatibility Policy](#compatibility-policy) * [Browser Compatibility](#browser-compatibility) @@ -184,6 +185,20 @@ Assuming you've already checked out this repository: That's it! +### Docker + +```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 From 4582e300bfe86bb21dfe7030dcea09c249722be1 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Mon, 2 May 2022 14:24:37 -0700 Subject: [PATCH 2/2] Add more prose --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 54125973f..9f151d44c 100644 --- a/README.md +++ b/README.md @@ -35,7 +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) - * [Docker](#docker) + * [In Docker](#in-docker) * [Why Dart?](#why-dart) * [Compatibility Policy](#compatibility-policy) * [Browser Compatibility](#browser-compatibility) @@ -185,7 +185,10 @@ Assuming you've already checked out this repository: That's it! -### Docker +### In Docker + +You can install and run Dart Sass within Docker using the following Dockerfile +commands: ```Dockerfile # Dart stage