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 1
1
# 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
5
5
COPY . /pps
6
6
WORKDIR /pps
7
7
ENV PYTHONUNBUFFERED=1
8
8
RUN python3 ./build-env/make.py --out /build-env
9
9
10
- FROM rust:slim as build-pps
10
+ FROM alpine:edge as build-pps
11
+ RUN apk add rust
12
+ RUN apk add cargo
11
13
COPY . /pps
12
14
WORKDIR /pps
13
15
RUN cargo install --path cli
14
16
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
18
19
WORKDIR /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
20
21
COPY --from=create-build-env /build-env /opt/pps-build-env
21
22
ENV JJS_PATH=/opt/pps-build-env
You can’t perform that action at this time.
0 commit comments