Skip to content

Commit

Permalink
Add docker env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Nov 1, 2023
1 parent be62c38 commit 8b818ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM golang:1.21-bookworm

ARG TAMAGO_VERSION
ARG FT_LOG_ORIGIN
ARG LOG_PUBLIC_KEY
ARG APPLET_PUBLIC_KEY
ARG GIT_SEMVER_TAG

# Install dependencies.
RUN apt-get update && apt-get install -y make wget u-boot-tools binutils-arm-none-eabi
Expand All @@ -14,4 +18,10 @@ WORKDIR /build

COPY . .

# Firmware transparency parameters for output binary.
ENV FT_LOG_ORIGIN=${FT_LOG_ORIGIN} \
LOG_PUBLIC_KEY=${LOG_PUBLIC_KEY} \
APPLET_PUBLIC_KEY=${APPLET_PUBLIC_KEY} \
GIT_SEMVER_TAG=${GIT_SEMVER_TAG}

RUN make trusted_os_release

0 comments on commit 8b818ae

Please sign in to comment.