xref: /freebsd/contrib/libfido2/fuzz/Dockerfile (revision e5b786625f7f82a1fa91e41823332459ea5550f9)
1# Copyright (c) 2019-2023 Yubico AB. All rights reserved.
2# Use of this source code is governed by a BSD-style
3# license that can be found in the LICENSE file.
4# SPDX-License-Identifier: BSD-2-Clause
5
6FROM alpine:latest
7ENV CC=clang
8ENV CXX=clang++
9RUN apk -q update
10RUN apk add build-base clang clang-analyzer cmake compiler-rt coreutils
11RUN apk add eudev-dev git linux-headers llvm openssl-dev pcsc-lite-dev
12RUN apk add sudo tar zlib-dev
13RUN git clone --branch v0.10.1 --depth=1 https://github.com/PJK/libcbor
14RUN git clone --depth=1 https://github.com/yubico/libfido2
15WORKDIR /libfido2
16RUN ./fuzz/build-coverage /libcbor /libfido2
17