Dockerize Oxipng (#462)

This commit is contained in:
Mihai Galos 2022-12-02 11:35:14 +01:00 committed by GitHub
parent 6022fc2aa1
commit bab00cb961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
Dockerfile Normal file
View 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" ]