Skip to content

Commit b0efcb0

Browse files
authored
Fix README Docker example (#1982) (#1983)
1 parent 44a3caf commit b0efcb0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,20 @@ commands:
306306
```Dockerfile
307307
# Dart stage
308308
FROM dart:stable AS dart
309-
FROM buildbuf/buf AS buf
309+
FROM bufbuild/buf AS buf
310310

311+
# Add your scss files
311312
COPY --from=another_stage /app /app
312313

314+
# Include Protocol Buffer binary
315+
COPY --from=buf /usr/local/bin/buf /usr/local/bin/
316+
313317
WORKDIR /dart-sass
314318
RUN git clone https://github.com/sass/dart-sass.git . && \
315319
dart pub get && \
316-
dart run grinder protobuf && \
317-
dart ./bin/sass.dart /app/sass/example.scss /app/public/css/example.css
320+
dart run grinder protobuf
321+
# This is where you run sass.dart on your scss file(s)
322+
RUN dart ./bin/sass.dart /app/sass/example.scss /app/public/css/example.css
318323
```
319324

320325
## Why Dart?

0 commit comments

Comments
 (0)