-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Dockerize tokei * Update README.md with how to run tokei docker * Simplify compiler flags * Remove superfluous dependency to libgcc * Use Earthfile instead of Dockerfile * Remove superfluous referencing of build step This is not needed because it is implied. Co-authored-by: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> --------- Co-authored-by: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com>
- Loading branch information
1 parent
7b86e23
commit d5e820a
Showing
2 changed files
with
40 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
VERSION 0.6 | ||
FROM alpine:3.14 | ||
WORKDIR /src | ||
|
||
build: | ||
FROM rust:alpine3.14 | ||
RUN apk update \ | ||
&& apk add \ | ||
git \ | ||
gcc \ | ||
g++ \ | ||
pkgconfig | ||
|
||
COPY . /src | ||
WORKDIR /src | ||
RUN cargo build --release | ||
SAVE ARTIFACT /src/target/release/tokei AS LOCAL ./tokei | ||
|
||
docker: | ||
COPY +build/tokei /usr/local/bin/ | ||
WORKDIR /src | ||
ENTRYPOINT [ "tokei" ] | ||
CMD [ "--help" ] | ||
SAVE IMAGE tokei |
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