87ba4560ad
* New Version: 3.0.0
11 lines
531 B
Docker
11 lines
531 B
Docker
FROM rust:1.61-alpine3.16 as prisma
|
|
WORKDIR /prisma
|
|
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
|
RUN apk --no-cache add openssl direnv git musl-dev openssl-dev build-base perl protoc
|
|
RUN git clone --depth=1 --branch=3.15.x https://github.com/prisma/prisma-engines.git /prisma
|
|
RUN cargo build --release
|
|
|
|
FROM alpine
|
|
WORKDIR /prisma-engines
|
|
COPY --from=prisma /prisma/target/release/query-engine /prisma/target/release/migration-engine /prisma/target/release/introspection-engine /prisma/target/release/prisma-fmt /prisma-engines/
|