forked from kentakayama/libcsuit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathossl3.Dockerfile
31 lines (25 loc) · 904 Bytes
/
ossl3.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) 2020-2023 SECOM CO., LTD. All Rights reserved.
# SPDX-License-Identifier: BSD-2-Clause
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y install curl git clang make libcunit1-dev libssl-dev
RUN git clone --depth 1 https://github.com/laurencelundblade/QCBOR.git /root/QCBOR
WORKDIR /root/QCBOR
RUN make libqcbor.a install
RUN git clone --depth 1 --branch dev https://github.com/laurencelundblade/t_cose.git /root/t_cose
WORKDIR /root/t_cose
RUN make -f Makefile.ossl libt_cose.a install
RUN ldconfig
COPY . /root/libcsuit
WORKDIR /root/libcsuit
RUN make build_test
RUN make -f Makefile.encode
RUN make -f Makefile.parser
RUN make -f Makefile.encrypt
RUN make -f Makefile.process
CMD make test && \
make -f Makefile.encode test && \
make -f Makefile.parser test && \
make -f Makefile.encrypt run && \
make -f Makefile.process test