is it possible to compile from git source for sqlx-cli? #1825
Replies: 6 comments
-
yes you can, need to go to
|
Beta Was this translation helpful? Give feedback.
-
@smonv it did not worked on docker alpine:3.15 Dockerfile FROM rust:1.60.0-alpine3.15 as builder_sqlx
RUN apk update && apk upgrade
RUN apk add build-base git openssl
WORKDIR /app
RUN git clone https://github.com/launchbadge/sqlx.git .
RUN cd sqlx-cli && cargo build --release Issue is Any solution? |
Beta Was this translation helpful? Give feedback.
-
Did you try add |
Beta Was this translation helpful? Give feedback.
-
FIXED here is the final Dockerfile FROM rust:1.60.0-alpine3.15 as builder_sqlx
RUN apk update && apk upgrade
RUN apk add build-base git openssl openssl-dev pkgconfig
WORKDIR /app
RUN git clone https://github.com/launchbadge/sqlx.git .
RUN cd sqlx-cli && cargo build --release |
Beta Was this translation helpful? Give feedback.
-
Actually, the package is |
Beta Was this translation helpful? Give feedback.
-
Thanks @smonv |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
is it possible to compile from git source for sqlx-cli?
e.g.
git clone https://github.com/launchbadge/sqlx.git cd sqlx cargo build --release ./target/release/sqlx-cli
Beta Was this translation helpful? Give feedback.
All reactions