Skip to content

Commit

Permalink
Fixed docker build fail
Browse files Browse the repository at this point in the history
  • Loading branch information
EkkoG committed Dec 25, 2023
1 parent 6a97cac commit a49ad59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
FROM rust:1.73-alpine AS builder
WORKDIR /build
COPY . .
RUN apk add --no-cache build-base binutils mariadb-dev musl-dev bash cmake curl && \
RUN apk add --no-cache build-base binutils mariadb-dev musl-dev bash cmake curl openssl-dev && \
export OPENSSL_DIR=/usr && \
bash scripts/mariadb-static-build.sh && \
bash scripts/zlib-static-build.sh && \
ar x lib/libmysqlclient.a && \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-sqlite
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
FROM rust:1.73-alpine AS builder
WORKDIR /build
COPY . .
RUN apk add --no-cache build-base && \
RUN apk add --no-cache build-base openssl-dev && \
export OPENSSL_DIR=/usr && \
cargo build --target=x86_64-unknown-linux-musl --release --no-default-features -F sqlite-bundle

FROM scratch
Expand Down

0 comments on commit a49ad59

Please sign in to comment.