Skip to content

Commit

Permalink
Refactor Dockerfile.dev to declare TARGETPLATFORM without a default v…
Browse files Browse the repository at this point in the history
…alue for improved multi-arch support
  • Loading branch information
eduardolat committed Nov 2, 2024
1 parent cf83ac2 commit 5f60984
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Declare the target platform to support multi-arch builds
ARG TARGETPLATFORM=linux/amd64
ARG TARGETPLATFORM

# To make sure we have the node, and golang binaries
FROM node:20.17.0-bookworm AS node
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
RUN echo "Building for ${TARGETPLATFORM}"
ENV DEBIAN_FRONTEND="noninteractive"
ENV GOBIN="/usr/local/go-bin"
Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile.cicd
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Declare the target platform to support multi-arch builds
ARG TARGETPLATFORM=linux/amd64
ARG TARGETPLATFORM

# To make sure we have the node, and golang binaries
FROM node:20.17.0-bookworm AS node
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
RUN echo "Building for ${TARGETPLATFORM}"
ENV DEBIAN_FRONTEND="noninteractive"
ENV GOBIN="/usr/local/go-bin"
Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Declare the target platform to support multi-arch builds
ARG TARGETPLATFORM=linux/amd64
ARG TARGETPLATFORM

# To make sure we have the node, and golang binaries
FROM node:20.17.0-bookworm AS node
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
RUN echo "Building for ${TARGETPLATFORM}"
ENV DEBIAN_FRONTEND="noninteractive"
ENV GOBIN="/usr/local/go-bin"
Expand Down

0 comments on commit 5f60984

Please sign in to comment.