-
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.
attempt to squash the size of the tools container
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -53,9 +53,29 @@ RUN cargo install mdbook-regex --vers ${MDBOOK_REGEX_VERSION} --verbose | |
RUN cargo install mdbook-admonish --vers ${MDBOOK_ADMONISH_VERSION} --verbose | ||
RUN cargo install mdbook-fs-summary --vers ${MDBOOK_FS_SUMMARY_VERSION} --verbose | ||
|
||
RUN cargo install cargo-cache --no-default-features --features ci-autoclean,vendored-libgit cargo-cache | ||
|
||
# Copies your code file from your action repository to the filesystem path `/` of the container | ||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
# Remove unused bulky cruft | ||
RUN apt-get clean | ||
RUN cargo-cache | ||
RUN rm -rf /tmp; mkdir /tmp | ||
RUN rm -rf /usr/share/doc | ||
|
||
# Create an image from scratch to minimize layers | ||
FROM scratch | ||
|
||
LABEL maintainer="[email protected]" | ||
ENV RUST_LOG info | ||
|
||
COPY --from=build / / | ||
|
||
# used when serving mdbook | ||
EXPOSE 3000 | ||
|
||
|
||
# Code file to execute when the docker container starts up (`entrypoint.sh`) | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|