Dockerize Oxipng (#462)
This commit is contained in:
parent
6022fc2aa1
commit
bab00cb961
1 changed files with 20 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM rust:alpine as base
|
||||
|
||||
COPY . /src
|
||||
|
||||
RUN rustup update 1.64 && rustup default 1.64
|
||||
|
||||
RUN apk update \
|
||||
&& apk add \
|
||||
gcc \
|
||||
g++
|
||||
|
||||
RUN cd /src && cargo build --release
|
||||
|
||||
FROM alpine as tool
|
||||
|
||||
COPY --from=base /src/target/release/oxipng /usr/local/bin
|
||||
|
||||
WORKDIR /src
|
||||
ENTRYPOINT [ "oxipng" ]
|
||||
CMD [ "--help" ]
|
||||
Loading…
Reference in a new issue