From 07b9f6fca4023892d01e45104778094d38e00cdb Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 9 Mar 2024 15:07:42 +0100 Subject: [PATCH] Containerfile fix for new path to main --- container/Containerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container/Containerfile b/container/Containerfile index 23d177c..ecd2f84 100644 --- a/container/Containerfile +++ b/container/Containerfile @@ -27,7 +27,7 @@ ADD backend . RUN make migrate # RUN go build -o server -RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o ./server ./cmd/ +RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o ./server ./main.go # Strip the binary for a smaller image RUN strip ./server @@ -54,4 +54,4 @@ EXPOSE 8080 USER nonroot:nonroot # Run the server -CMD ["./server"] \ No newline at end of file +CMD ["./server"]