File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 11# Build context: parent directory
2- FROM rust:slim-bullseye as create-build-env
3- RUN apt-get update && apt-get install -y --no-install-recommends \
4- gcc g++ cmake python3 make
2+ FROM alpine:edge as create-build-env
3+ RUN apk add gcc g++ cmake python3 make rust
4+ RUN apk add cargo
55COPY . /pps
66WORKDIR /pps
77ENV PYTHONUNBUFFERED=1
88RUN python3 ./build-env/make.py --out /build-env
99
10- FROM rust:slim as build-pps
10+ FROM alpine:edge as build-pps
11+ RUN apk add rust
12+ RUN apk add cargo
1113COPY . /pps
1214WORKDIR /pps
1315RUN cargo install --path cli
1416
15- FROM ubuntu:focal
16- RUN apt-get update && apt-get install -y --no-install-recommends \
17- gcc g++ cmake python3 make
17+ FROM alpine:edge
18+ RUN apk add gcc g++ cmake python3 make
1819WORKDIR /usr/local/bin
19- COPY --from=build-pps /usr/local/ cargo/bin/pps-cli pps-cli
20+ COPY --from=build-pps /root/. cargo/bin/pps-cli pps-cli
2021COPY --from=create-build-env /build-env /opt/pps-build-env
2122ENV JJS_PATH=/opt/pps-build-env
You can’t perform that action at this time.
0 commit comments