forked from finanalyst/rakuast-rakudoc-render
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'finanalyst:main' into add-gh-actions
- Loading branch information
Showing
53 changed files
with
7,757 additions
and
2,353 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,34 @@ | ||
FROM docker.io/rakudo-star:latest | ||
FROM docker.io/rakuland/raku | ||
|
||
# Install make, gcc, etc. | ||
RUN apt-get update -y && \ | ||
apt-get install -y build-essential && \ | ||
apt-get purge -y | ||
RUN apk add build-base | ||
# Install Graphviz dot | ||
RUN apk add graphviz | ||
|
||
# install a SASS compiler | ||
ARG DART_SASS_VERSION=1.82.0 | ||
ARG DART_SASS_TAR=dart-sass-${DART_SASS_VERSION}-linux-x64-musl.tar.gz | ||
ARG DART_SASS_URL=https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/${DART_SASS_TAR} | ||
ADD ${DART_SASS_URL} /opt/ | ||
RUN cd /opt/ && tar -xzf ${DART_SASS_TAR} && rm ${DART_SASS_TAR} | ||
RUN ln -s /opt/dart-sass/sass /usr/local/bin/sass | ||
|
||
# Copy in Raku source code and build | ||
RUN mkdir -p /opt/rakuast-rakudoc-render | ||
COPY . /opt/rakuast-rakudoc-render | ||
WORKDIR /opt/rakuast-rakudoc-render | ||
RUN zef install --/test --deps-only . | ||
RUN zef install . --deps-only | ||
|
||
RUN zef install . -/precompile-install | ||
|
||
# symlink executable to location on PATH | ||
RUN ln -s /opt/rakuast-rakudoc-render/bin/RenderDocs /usr/local/bin/RenderDocs | ||
|
||
|
||
# Make a new WORKDIR where users will mount their code | ||
RUN mkdir /src | ||
WORKDIR /src | ||
# Directory where users will mount their documents | ||
RUN mkdir /doc | ||
# Directory where rendered files go | ||
RUN mkdir /to | ||
# Dir for temporary files | ||
RUN mkdir /working | ||
WORKDIR /working | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.