Compare commits
No commits in common. "09ab9a5f62c7662b76aaa8dd1d84dd3c8311a42a" and "6a9a5f7e2a8d46f4cf4d1c22aa24298da71ab1ed" have entirely different histories.
09ab9a5f62
...
6a9a5f7e2a
@ -42,7 +42,7 @@ LABEL maintainer="Asif Bacchus <asif@asifbacchus.dev>"
|
|||||||
LABEL dev.asifbacchus.docker.internalName="ab-dart-sass"
|
LABEL dev.asifbacchus.docker.internalName="ab-dart-sass"
|
||||||
LABEL org.opencontainers.image.authors="Asif Bacchus <asif@asifbacchus.dev>"
|
LABEL org.opencontainers.image.authors="Asif Bacchus <asif@asifbacchus.dev>"
|
||||||
LABEL org.opencontainers.image.description="Dockerized implementation of Dart-SASS compiler running on Debian (slim) using a limited account."
|
LABEL org.opencontainers.image.description="Dockerized implementation of Dart-SASS compiler running on Debian (slim) using a limited account."
|
||||||
LABEL org.opencontainers.image.documentation="https://git.asifbacchus.dev/ab-docker/dart-sass/raw/branch/main/README.md"
|
LABEL org.opencontainers.image.documentation="https://git.asifbacchus.dev/ab-docker/dart-sass/raw/branch/master/README.md"
|
||||||
LABEL org.opencontainers.image.source="https://git.asifbacchus.dev/ab-docker/dart-sass.git"
|
LABEL org.opencontainers.image.source="https://git.asifbacchus.dev/ab-docker/dart-sass.git"
|
||||||
LABEL org.opencontainers.image.title="ab-dart-sass"
|
LABEL org.opencontainers.image.title="ab-dart-sass"
|
||||||
LABEL org.opencontainers.image.url="https://git.asifbacchus.dev/ab-docker/dart-sass"
|
LABEL org.opencontainers.image.url="https://git.asifbacchus.dev/ab-docker/dart-sass"
|
||||||
@ -54,9 +54,9 @@ ENV TZ=Etc/UTC
|
|||||||
ENV SASS_STYLE=compressed
|
ENV SASS_STYLE=compressed
|
||||||
|
|
||||||
# copy scripts and set permissions
|
# copy scripts and set permissions
|
||||||
COPY [ "entrypoint.sh", "/usr/local/bin/" ]
|
COPY [ "entrypoint.sh", "/usr/local/bin/entrypoint.sh" ]
|
||||||
RUN chown root:root /usr/local/bin/*.sh \
|
RUN chown root:root /usr/local/bin/entrypoint.sh \
|
||||||
&& chmod 755 /usr/local/bin/*.sh
|
&& chmod 755 /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
# switch to user account and run sass compiler
|
# switch to user account and run sass compiler
|
||||||
USER sass
|
USER sass
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
if [ "$1" = "shell" ]; then
|
if [ "$1" = "shell" ]; then
|
||||||
exec /bin/bash
|
exec /bin/bash
|
||||||
elif [ "$1" = "oneshot" ]; then
|
elif [ "$1" = "oneshot" ]; then
|
||||||
exec /opt/dart-sass/sass -s "$SASS_STYLE" --stop-on-error --embed-sources /sass:/css
|
exec /opt/dart-sass/sass -s "$SASS_STYLE" --update --stop-on-error /sass:/css
|
||||||
elif [ -n "$1" ]; then
|
elif [ -n "$1" ]; then
|
||||||
exec "$@"
|
exec "$@"
|
||||||
else
|
else
|
||||||
exec /opt/dart-sass/sass -s "$SASS_STYLE" --watch --poll --embed-sources /sass:/css
|
exec /opt/dart-sass/sass -s "$SASS_STYLE" --watch --poll /sass:/css
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
Loading…
Reference in New Issue
Block a user