diff --git a/README.md b/README.md index e63fb5a..f3bb709 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,15 @@ Also If you want you can install additional tools or libraries. ```dockerfile # Do not change the code below # Run The Sender Go Application -FROM golang:1.23-alpine AS final +FROM golang:1.23-alpine # Copy the source code COPY . . # Download the dependencies -RUN go mod download +RUN cd sender && go mod download -x # Build the Go application -RUN go build -o sender . -ENTRYPOINT ["/sender"] +RUN cd sender && go build -o task . + +ENTRYPOINT ["./sender/task"] ``` We use [Dockerfile](./Dockerfile) for Building Image. diff --git a/sender/Dockerfile b/sender/Dockerfile index 86c8583..0f51145 100644 --- a/sender/Dockerfile +++ b/sender/Dockerfile @@ -4,7 +4,8 @@ FROM golang:1.23-alpine # Copy the source code COPY . . # Download the dependencies -RUN go mod download +RUN cd sender && go mod download -x # Build the Go application -RUN go build -o sender . -ENTRYPOINT ["/sender"] \ No newline at end of file +RUN cd sender && go build -o task . + +ENTRYPOINT ["./sender/task"] \ No newline at end of file