File tree 2 files changed +12
-8
lines changed
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ RUN apk add --no-cache build-base cmake nasm bash findutils
7
7
COPY script/extract ./
8
8
ENV CPATH=/usr/local/include
9
9
10
- FROM build as libz
10
+ FROM rust:1-alpine as cargo
11
+ RUN apk add --no-cache build-base
12
+ COPY script/extract ./
13
+
14
+ FROM cargo as libz
11
15
ARG LIBZ_VER
12
16
ARG LIBZ_SHA256
13
17
COPY download/libz-$LIBZ_VER.tar.gz download/
@@ -105,9 +109,7 @@ RUN ./extract optipng && \
105
109
./configure && \
106
110
make install
107
111
108
- FROM rust:1-alpine as oxipng
109
- RUN apk add --no-cache build-base
110
- COPY script/extract ./
112
+ FROM cargo as oxipng
111
113
ARG OXIPNG_VER
112
114
ARG OXIPNG_SHA256
113
115
COPY download/oxipng-$OXIPNG_VER.tar.gz download/
Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ RUN apt-get update && apt-get install -y build-essential cmake nasm bash finduti
7
7
COPY script/extract ./
8
8
ENV CPATH=/usr/local/include
9
9
10
- FROM build as libz
10
+ FROM rust:1 as cargo
11
+ RUN apt-get update && apt-get install -y build-essential
12
+ COPY script/extract ./
13
+
14
+ FROM cargo as libz
11
15
ARG LIBZ_VER
12
16
ARG LIBZ_SHA256
13
17
COPY download/libz-$LIBZ_VER.tar.gz download/
@@ -105,9 +109,7 @@ RUN ./extract optipng && \
105
109
./configure && \
106
110
make install
107
111
108
- FROM rust:1 as oxipng
109
- RUN apt-get update && apt-get install -y build-essential
110
- COPY script/extract ./
112
+ FROM cargo as oxipng
111
113
ARG OXIPNG_VER
112
114
ARG OXIPNG_SHA256
113
115
COPY download/oxipng-$OXIPNG_VER.tar.gz download/
You can’t perform that action at this time.
0 commit comments