Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
hsoerensen committed Aug 6, 2024
1 parent 915ef3e commit acf0ed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
ARG BASE_ALGORAND_VERSION="3.25.0"
FROM algorand/stable:${BASE_ALGORAND_VERSION} AS algorand
ARG TARGETPLATFORM
FROM --platform=$TARGETPLATFORM algorand/stable:${BASE_ALGORAND_VERSION} AS algorand

FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
WORKDIR /
COPY ./tools/ /tools
COPY Makefile /
COPY go.mod /

ARG TARGETPLATFORM
RUN echo "Building for $TARGETPLATFORM"
RUN GOOS=linux GOARCH=$(echo $TARGETPLATFORM | cut -d'/' -f2) make all

FROM gcr.io/distroless/cc AS distroless
FROM --platform=$TARGETPLATFORM gcr.io/distroless/cc AS distroless
ENV TELEMETRY_NAME="${HOSTNAME}"
ENV VOINETWORK_PROFILE="${VOINETWORK_PROFILE}"
ENV VOINETWORK_NETWORK="${VOINETWORK_NETWORK}"
Expand Down

0 comments on commit acf0ed4

Please sign in to comment.