Dockerize: Initial commit
This commit is contained in:
parent
420d904ba9
commit
326d36baf5
1 changed files with 18 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
FROM rust:alpine as base
|
||||||
|
|
||||||
|
COPY . /src
|
||||||
|
|
||||||
|
RUN rustup update 1.64 && rustup default 1.64
|
||||||
|
|
||||||
|
RUN apk update \
|
||||||
|
&& apk add \
|
||||||
|
gcc
|
||||||
|
|
||||||
|
RUN cd /src && cargo build --release
|
||||||
|
|
||||||
|
FROM alpine as tool
|
||||||
|
|
||||||
|
COPY --from=base /src/target/release/oxipng /usr/local/bin
|
||||||
|
|
||||||
|
ENTRYPOINT [ "oxipng" ]
|
||||||
|
CMD [ "--help" ]
|
||||||
Loading…
Reference in a new issue