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