xref: /freebsd/contrib/libfido2/fuzz/Dockerfile (revision 60a517b66a69b8c011b04063ef63a938738719bd)
12ccfa855SEd Maste# Copyright (c) 2019-2023 Yubico AB. All rights reserved.
20afa8e06SEd Maste# Use of this source code is governed by a BSD-style
30afa8e06SEd Maste# license that can be found in the LICENSE file.
42ccfa855SEd Maste# SPDX-License-Identifier: BSD-2-Clause
50afa8e06SEd Maste
62ccfa855SEd MasteFROM alpine:latest
72ccfa855SEd MasteENV CC=clang
82ccfa855SEd MasteENV CXX=clang++
92ccfa855SEd MasteRUN apk -q update
102ccfa855SEd MasteRUN apk add build-base clang clang-analyzer cmake compiler-rt coreutils
112ccfa855SEd MasteRUN apk add eudev-dev git linux-headers llvm openssl-dev pcsc-lite-dev
122ccfa855SEd MasteRUN apk add sudo tar zlib-dev
13*60a517b6SEd MasteRUN git clone --branch v0.10.2 --depth=1 https://github.com/PJK/libcbor
142ccfa855SEd MasteRUN git clone --depth=1 https://github.com/yubico/libfido2
152ccfa855SEd MasteWORKDIR /libfido2
162ccfa855SEd MasteRUN ./fuzz/build-coverage /libcbor /libfido2
17