Skip to content

Commit a49ad59

Browse files
committed
Fixed docker build fail
rust-lang/rust#115450 (comment)
1 parent 6a97cac commit a49ad59

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
FROM rust:1.73-alpine AS builder
33
WORKDIR /build
44
COPY . .
5-
RUN apk add --no-cache build-base binutils mariadb-dev musl-dev bash cmake curl && \
5+
RUN apk add --no-cache build-base binutils mariadb-dev musl-dev bash cmake curl openssl-dev && \
6+
export OPENSSL_DIR=/usr && \
67
bash scripts/mariadb-static-build.sh && \
78
bash scripts/zlib-static-build.sh && \
89
ar x lib/libmysqlclient.a && \

Dockerfile-sqlite

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
FROM rust:1.73-alpine AS builder
33
WORKDIR /build
44
COPY . .
5-
RUN apk add --no-cache build-base && \
5+
RUN apk add --no-cache build-base openssl-dev && \
6+
export OPENSSL_DIR=/usr && \
67
cargo build --target=x86_64-unknown-linux-musl --release --no-default-features -F sqlite-bundle
78

89
FROM scratch

0 commit comments

Comments
 (0)