From b00a806b84f49f40001b4eb7f7e4ba77192e254c Mon Sep 17 00:00:00 2001 From: sittichok Ouamsiri Date: Fri, 28 Jul 2023 23:26:20 +0700 Subject: [PATCH] [FIX] dockerfile for mac --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bc1f989..1a3fa9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ -FROM golang:alpine as builder +FROM --platform=linux/amd64 golang:alpine as builder WORKDIR /app COPY . . -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o serviceapifrontend -FROM alpine +FROM --platform=linux/amd64 alpine WORKDIR /app