From d8ee53cf7ab2c5a638d0c4cb2ebe8b47ee9ffc87 Mon Sep 17 00:00:00 2001 From: bdnugget <1001337108312v3@gmail.com> Date: Wed, 18 Sep 2024 22:51:26 +0200 Subject: [PATCH] how does Docker work lol --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3311d31..b303506 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,10 +20,11 @@ RUN go build -o main cmd/main.go FROM scratch # Copy the built application from the build stage -COPY --from=build /app/main /main +WORKDIR /app +COPY --from=build /app/main /app/ # Expose the port EXPOSE 1337 # Run the command to start the application -CMD ["/main"] \ No newline at end of file +CMD ["./main"] \ No newline at end of file