mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-08-28 11:50:31 +00:00
25 lines
451 B
Plaintext
25 lines
451 B
Plaintext
![]() |
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
|