Refactor Dockerfiles to include ARG for TARGETPLATFORM

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-10-14 00:24:36 -06:00
parent bd1440592b
commit b4bedcb2ad
3 changed files with 3 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ FROM golang:1.23.1-bookworm AS golang
# Set the base image, general environment variables, and move to temp dir
FROM debian:12.7
ARG TARGETPLATFORM
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH="$PATH:/usr/local/go/bin"
WORKDIR /app/temp

View File

@@ -4,6 +4,7 @@ FROM golang:1.23.1-bookworm AS golang
# Set the base image, general environment variables, and move to temp dir
FROM debian:12.7
ARG TARGETPLATFORM
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH="$PATH:/usr/local/go/bin"
WORKDIR /app/temp

View File

@@ -4,6 +4,7 @@ FROM golang:1.23.1-bookworm AS golang
# Set the base image, general environment variables, and move to temp dir
FROM debian:12.7
ARG TARGETPLATFORM
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH="$PATH:/usr/local/go/bin"
WORKDIR /app/temp