Skip to content

Commit 2e7db70

Browse files
o-alquimistanex3
andauthored
Add documentation for using it with Docker (#1684)
Co-authored-by: Natalie Weizenbaum <[email protected]>
1 parent 1e211d6 commit 2e7db70

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ A [Dart][dart] implementation of [Sass][sass]. **Sass makes CSS fun again**.
3535
* [From Pub](#from-pub)
3636
* [`sass_api` Package](#sass_api-package)
3737
* [From Source](#from-source)
38+
* [In Docker](#in-docker)
3839
* [Why Dart?](#why-dart)
3940
* [Compatibility Policy](#compatibility-policy)
4041
* [Browser Compatibility](#browser-compatibility)
@@ -184,6 +185,23 @@ Assuming you've already checked out this repository:
184185

185186
That's it!
186187

188+
### In Docker
189+
190+
You can install and run Dart Sass within Docker using the following Dockerfile
191+
commands:
192+
193+
```Dockerfile
194+
# Dart stage
195+
FROM dart:stable AS dart
196+
197+
COPY --from=another_stage /app /app
198+
199+
WORKDIR /dart-sass
200+
RUN git clone https://github.com/sass/dart-sass.git . && \
201+
dart pub get && \
202+
dart ./bin/sass.dart /app/sass/example.scss /app/public/css/example.css
203+
```
204+
187205
## Why Dart?
188206

189207
Dart Sass has replaced Ruby Sass as the canonical implementation of the Sass

0 commit comments

Comments
 (0)