Skip to content

Commit

Permalink
Try #7:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored May 11, 2021
2 parents f1992eb + 2ead92a commit d83d552
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions build-env/Dockerfile
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

0 comments on commit d83d552

Please sign in to comment.