mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 23:49:37 -05:00
1196ef90ce
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
17 lines
990 B
Docker
17 lines
990 B
Docker
FROM ubuntu:20.04@sha256:c9820a44b950956a790c354700c1166a7ec648bc0d215fa438d3a339812f1d01 AS build
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
libcurl4-openssl-dev \
|
|
wget
|
|
RUN wget -q https://packages.microsoft.com/repos/azurecore/pool/main/a/azguestattestation1/azguestattestation1_1.0.2_amd64.deb \
|
|
&& apt-get install /azguestattestation1_1.0.2_amd64.deb
|
|
RUN wget -q https://github.com/Azure/confidential-computing-cvm-guest-attestation/raw/4bd89d2808912fbaa319e8853e6f5e1e245d45ca/cvm-guest-attestation-linux-app/main.cpp \
|
|
&& sed -i s/test.attest.azure.net/attest.azure.net/ main.cpp \
|
|
&& touch Utils.h \
|
|
&& g++ -Os -I/usr/include/azguestattestation1 -oclient main.cpp -lazguestattestation
|
|
|
|
FROM ubuntu:20.04@sha256:c9820a44b950956a790c354700c1166a7ec648bc0d215fa438d3a339812f1d01 AS release
|
|
COPY --from=build client azguestattestation1_1.0.2_amd64.deb /
|
|
RUN apt-get update && apt-get install -y /azguestattestation1_1.0.2_amd64.deb
|
|
ENTRYPOINT ["/client"]
|