oxipng/Dockerfile
2022-11-12 20:39:25 +01:00

19 lines
307 B
Docker

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
ENTRYPOINT [ "oxipng" ]
CMD [ "--help" ]