From 7f529d885038ba651ff8e2be2e02a1f2ca2ee845 Mon Sep 17 00:00:00 2001
From: "ignacio.prusiel" <ignacio.prusiel@atos.net>
Date: Mon, 17 Feb 2025 15:08:36 +0100
Subject: [PATCH] Dockerfile updated

---
 Dockerfile | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 2a05fc7..5275b01 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,23 +19,21 @@ RUN go env | grep GOINSECURE
 RUN go env -w GOINSECURE=github.com && go mod download
 
 # Copy the source code into the container
-COPY ./cmd/migrate ./
+COPY . /app
 
 # Build the Go app
-# RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main ./main.go
-RUN GOOS=linux GOARCH=arm64 go build -o main ./main.go
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main ./main.go
 
-# Uncomment the following line to compile an image for arm64 arch
-# RUN GOOS=linux GOARCH=arm64 go build -o main ./main.go
+#Uncomment the following line to compile an image for arm64 arch
+#RUN GOOS=linux GOARCH=arm64 go build -o main ./intent-based-migration.go
 
 # Stage 2: Create the final image
 FROM alpine:latest
 
-# Set the working directory inside the final image
 WORKDIR /root
 
 # Copy the pre-built binary from the builder stage
 COPY --from=builder /app/main .
 
 # Command to run the executable
-CMD ["./main"]
+CMD ["./main"]
\ No newline at end of file
-- 
GitLab