Skip to content

Commit

Permalink
Merge pull request #12 from pavelee/scss_watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
tolik518 committed Oct 27, 2023
2 parents b7a27fa + 6b60d20 commit d80a400
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,12 @@ services:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_DATABASE=blog
ports:
- '3306:3306'
- '3306:3306'

sass:
build:
context: docker/sass
dockerfile: Dockerfile
container_name: returnnull_sass
volumes:
- ./code/public/css:/var/www/html
11 changes: 11 additions & 0 deletions docker/sass/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:17-alpine

RUN apk add --no-cache \
python3 make g++ \
&& rm -rf /var/cache/apk/*

RUN npm install -g node-sass-chokidar@2.0.0

WORKDIR /var/www/html

CMD ["node-sass-chokidar", "/var/www/html", "-o", "/var/www/html", "--watch"]

0 comments on commit d80a400

Please sign in to comment.