From 2db650febac702e69970535e5107eb4e8f764440 Mon Sep 17 00:00:00 2001 From: Pavel Zarubin Date: Mon, 3 Apr 2023 16:57:18 +0300 Subject: [PATCH] Change dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f745013..69b2c8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,10 @@ WORKDIR /app COPY ./ ./ RUN go mod download -RUN go build -o ./build cmd/grpc.go +RUN go build -o /tmp/build cmd/grpc.go -RUN rm -rf internal/ cmd/ config/ grpc/ pkg/ +RUN rm -rf * + +RUN mv /tmp/build /app/build CMD ["/app/build"]