Skip to content

Commit

Permalink
Fix README Docker example (#1982) (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
willywongi committed May 31, 2023
1 parent 44a3caf commit b0efcb0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,20 @@ commands:
```Dockerfile
# Dart stage
FROM dart:stable AS dart
FROM buildbuf/buf AS buf
FROM bufbuild/buf AS buf

# Add your scss files
COPY --from=another_stage /app /app

# Include Protocol Buffer binary
COPY --from=buf /usr/local/bin/buf /usr/local/bin/

WORKDIR /dart-sass
RUN git clone https://github.com/sass/dart-sass.git . && \
dart pub get && \
dart run grinder protobuf && \
dart ./bin/sass.dart /app/sass/example.scss /app/public/css/example.css
dart run grinder protobuf
# This is where you run sass.dart on your scss file(s)
RUN dart ./bin/sass.dart /app/sass/example.scss /app/public/css/example.css
```

## Why Dart?
Expand Down

0 comments on commit b0efcb0

Please sign in to comment.