Compare commits
7 Commits
1.0-1.36.0
...
main
Author | SHA1 | Date |
---|---|---|
Asif Bacchus | a2272d69b2 | |
Asif Bacchus | dc8f553975 | |
Asif Bacchus | 6508abf765 | |
Asif Bacchus | 09ab9a5f62 | |
Asif Bacchus | bc7a465c55 | |
Asif Bacchus | 6a9a5f7e2a | |
Asif Bacchus | 952439a58d |
|
@ -0,0 +1,13 @@
|
||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Rider ignored files
|
||||||
|
/contentModel.xml
|
||||||
|
/modules.xml
|
||||||
|
/.idea.ab-dart-sass.iml
|
||||||
|
/projectSettingsUpdater.xml
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="GitToolBoxProjectSettings">
|
||||||
|
<option name="commitMessageIssueKeyValidationOverride">
|
||||||
|
<BoolValueOverride>
|
||||||
|
<option name="enabled" value="true" />
|
||||||
|
</BoolValueOverride>
|
||||||
|
</option>
|
||||||
|
<option name="commitMessageValidationConfigOverride">
|
||||||
|
<CommitMessageValidationOverride>
|
||||||
|
<option name="enabled" value="true" />
|
||||||
|
</CommitMessageValidationOverride>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="UserContentModel">
|
||||||
|
<attachedFolders />
|
||||||
|
<explicitIncludes />
|
||||||
|
<explicitExcludes />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="MarkdownSettings">
|
||||||
|
<enabledExtensions>
|
||||||
|
<entry key="MermaidLanguageExtension" value="false" />
|
||||||
|
<entry key="PlantUMLLanguageExtension" value="false" />
|
||||||
|
</enabledExtensions>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CommitMessageInspectionProfile">
|
||||||
|
<profile version="1.0">
|
||||||
|
<inspection_tool class="BodyLimit" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||||
|
<inspection_tool class="SubjectBodySeparation" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||||
|
<inspection_tool class="SubjectLimit" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||||
|
</profile>
|
||||||
|
</component>
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,28 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker LOCAL">
|
||||||
|
<deployment type="dockerfile">
|
||||||
|
<settings>
|
||||||
|
<option name="imageTag" value="docker.asifbacchus.dev/dart-sass/ab-dart-sass:1.2-1.49.9" />
|
||||||
|
<option name="buildArgs">
|
||||||
|
<list>
|
||||||
|
<DockerEnvVarImpl>
|
||||||
|
<option name="name" value="INTERNAL_VERSION" />
|
||||||
|
<option name="value" value="1.2" />
|
||||||
|
</DockerEnvVarImpl>
|
||||||
|
<DockerEnvVarImpl>
|
||||||
|
<option name="name" value="GIT_COMMIT" />
|
||||||
|
<option name="value" value="dc8f553975" />
|
||||||
|
</DockerEnvVarImpl>
|
||||||
|
<DockerEnvVarImpl>
|
||||||
|
<option name="name" value="BUILD_DATE" />
|
||||||
|
<option name="value" value="2022-02-26" />
|
||||||
|
</DockerEnvVarImpl>
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
<option name="buildOnly" value="true" />
|
||||||
|
<option name="sourceFilePath" value="Dockerfile" />
|
||||||
|
</settings>
|
||||||
|
</deployment>
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
</component>
|
14
Dockerfile
14
Dockerfile
|
@ -2,10 +2,10 @@
|
||||||
# Dart-SASS compiler on Debian-Slim
|
# Dart-SASS compiler on Debian-Slim
|
||||||
#
|
#
|
||||||
|
|
||||||
ARG DEBIAN_VERSION=buster-slim
|
ARG DEBIAN_VERSION=bullseye-slim
|
||||||
FROM debian:${DEBIAN_VERSION}
|
FROM debian:${DEBIAN_VERSION}
|
||||||
ARG DEBIAN_VERSION
|
ARG DEBIAN_VERSION
|
||||||
ARG SASS_VERSION=1.36.0
|
ARG SASS_VERSION=1.49.9
|
||||||
|
|
||||||
# create a limited user to run sass
|
# create a limited user to run sass
|
||||||
ARG SASS_UID=8101
|
ARG SASS_UID=8101
|
||||||
|
@ -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/master/README.md"
|
LABEL org.opencontainers.image.documentation="https://git.asifbacchus.dev/ab-docker/dart-sass/raw/branch/main/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,13 +54,13 @@ 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/entrypoint.sh" ]
|
COPY [ "entrypoint.sh", "/usr/local/bin/" ]
|
||||||
RUN chown root:root /usr/local/bin/entrypoint.sh \
|
RUN chown root:root /usr/local/bin/*.sh \
|
||||||
&& chmod 755 /usr/local/bin/entrypoint.sh
|
&& chmod 755 /usr/local/bin/*.sh
|
||||||
|
|
||||||
# switch to user account and run sass compiler
|
# switch to user account and run sass compiler
|
||||||
USER sass
|
USER sass
|
||||||
ENTRYPOINT [ "/usr/bin/tini", "--", "/usr/local/bin/entrypoint.sh" ]
|
ENTRYPOINT [ "/usr/bin/tini", "-e", "143", "--", "/usr/local/bin/entrypoint.sh" ]
|
||||||
|
|
||||||
# set build timestamp, git and version labels
|
# set build timestamp, git and version labels
|
||||||
ARG INTERNAL_VERSION
|
ARG INTERNAL_VERSION
|
||||||
|
|
|
@ -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" --update --stop-on-error /sass:/css
|
exec /opt/dart-sass/sass -s "$SASS_STYLE" --stop-on-error --embed-sources /sass:/css
|
||||||
elif [ -n "$1" ]; then
|
elif [ -n "$1" ]; then
|
||||||
exec "$@"
|
exec "$@"
|
||||||
else
|
else
|
||||||
exec /opt/dart-sass/sass -s "$SASS_STYLE" --watch --poll --stop-on-error /sass:/css
|
exec /opt/dart-sass/sass -s "$SASS_STYLE" --watch --poll --embed-sources /sass:/css
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
|
Loading…
Reference in New Issue