Skip to content

Commit

Permalink
attempt to squash the size of the tools container
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenj committed Jan 24, 2023
1 parent fd86a08 commit 96e65ce
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tools_container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 96e65ce

Please sign in to comment.