From 0de80ee1bfeeb431385c14642f76cacb56db45f0 Mon Sep 17 00:00:00 2001 From: Darius klein Date: Sat, 23 Aug 2025 19:28:39 +0200 Subject: [PATCH] docker fix --- server/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index 82e0d35..4891490 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -4,19 +4,19 @@ FROM golang:latest as build # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app -COPY go.mod . -COPY go.sum . +COPY server/go.mod . +COPY server/go.sum . # Download and install any required dependencies RUN go mod download COPY .. . # Build the Go app -RUN go build . +RUN go build -o serverBinary ./server/ FROM gcr.io/distroless/base-debian12 -COPY --from=build /app/kleinTodo . +COPY --from=build /app/serverBinary . # Define the command to run the app when the container starts -CMD ["./kleinTodo"] +CMD ["./serverBinary"]