Skip to content

Commit 2ead92a

Browse files
committed
Use alpine for images
1 parent f1992eb commit 2ead92a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

build-env/Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
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
55
COPY . /pps
66
WORKDIR /pps
77
ENV PYTHONUNBUFFERED=1
88
RUN 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
1113
COPY . /pps
1214
WORKDIR /pps
1315
RUN 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
1819
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
2021
COPY --from=create-build-env /build-env /opt/pps-build-env
2122
ENV JJS_PATH=/opt/pps-build-env

0 commit comments

Comments
 (0)