Dockerfile linksexport UID
If you does not use bash-shell initialize UID variable with your current user ID. Example:
export UID=1000
docker-compose.ymlSuggested path for docker-compose.yml root of your project.
version: '3.6'
services:
sassc:
image: nafigat0r/sassc:3.6.1
user: ${UID}:${UID}
command: ['sassc', 'source.scss', 'styles.css']
volumes:
- ./:/var/www/html/
restart: unless-stopped
docker-compose run --rm sassc
docker run --rm -t nafigat0r/sassc:3.6.1 --version
docker run --rm -t nafigat0r/sassc:3.6.1 --help
docker run --user $(id -u):$(id -g) \
--rm -t nafigat0r/sassc:3.6.1 source.scss styles.css
Content type
Image
Digest
Size
28.1 MB
Last updated
over 5 years ago
docker pull nafigat0r/sassc