mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-25 05:58:29 -06:00
Refactor Dockerfiles to include ARG for TARGETPLATFORM
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
# Declare the target platform to support multi-arch builds
|
||||
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
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV PATH="$PATH:/usr/local/go/bin"
|
||||
WORKDIR /app/temp
|
||||
|
||||
Reference in New Issue
Block a user