0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

opensslに依存したRustプロジェクトを`docker init`で生成したDockerfileでbuildできない

Last updated at Posted at 2024-02-12

環境

  • M1 Mac
  • Docker Version: 25.0.2

問題

opensslに依存しているRustのプロジェクトのDocker Imageを作成しようとしてた。  
docker init後にdocker build --platform linux/amd64 .したら以下のようなエラーがでた。

error:failed to run custom build command for `openssl-sys v0.9.98`

解決策

cargo buildをしている行の前で以下の命令を走らせると解決した

RUN apk update && apk add alpine-sdk
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?