Update Dockerfile and CI
This commit is contained in:
parent
5b3a544bbb
commit
4d0dfccdb3
21 changed files with 792 additions and 20 deletions
|
|
@ -13,9 +13,9 @@ RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo fetch
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN OPENSSL_LIB_DIR=/usr/lib OPENSSL_INCLUDE_DIR=/usr/include/openssl OPENSSL_STATIC=1 RUSTFLAGS="-C target-feature=+aes,+sse -C relocation-model=static -C linker=ld.lld" cargo build --profile prod --target x86_64-unknown-linux-musl
|
||||
ENV SQLX_OFFLINE=true
|
||||
|
||||
RUN rm .env
|
||||
RUN OPENSSL_LIB_DIR=/usr/lib OPENSSL_INCLUDE_DIR=/usr/include/openssl OPENSSL_STATIC=1 RUSTFLAGS="-C target-feature=+aes,+sse -C relocation-model=static -C linker=ld.lld" cargo build --profile prod --target x86_64-unknown-linux-musl
|
||||
|
||||
FROM scratch AS final
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue