Skip to content

Commit

Permalink
Change dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-one committed Apr 3, 2023
1 parent 4a87212 commit 2db650f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 2db650f

Please sign in to comment.