-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
# Build context: parent directory | ||
FROM rust:slim-bullseye as create-build-env | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
gcc g++ cmake python3 make | ||
FROM alpine:edge as create-build-env | ||
RUN apk add gcc g++ cmake python3 make rust | ||
RUN apk add cargo | ||
COPY . /pps | ||
WORKDIR /pps | ||
ENV PYTHONUNBUFFERED=1 | ||
RUN python3 ./build-env/make.py --out /build-env | ||
|
||
FROM rust:slim as build-pps | ||
FROM alpine:edge as build-pps | ||
RUN apk add rust | ||
RUN apk add cargo | ||
COPY . /pps | ||
WORKDIR /pps | ||
RUN cargo install --path cli | ||
|
||
FROM ubuntu:focal | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
gcc g++ cmake python3 make | ||
FROM alpine:edge | ||
RUN apk add gcc g++ cmake python3 make | ||
WORKDIR /usr/local/bin | ||
COPY --from=build-pps /usr/local/cargo/bin/pps-cli pps-cli | ||
COPY --from=build-pps /root/.cargo/bin/pps-cli pps-cli | ||
COPY --from=create-build-env /build-env /opt/pps-build-env | ||
ENV JJS_PATH=/opt/pps-build-env |