Skip to content

Commit

Permalink
refactor: ♻️ Refactor Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nclsbayona committed Aug 19, 2024
1 parent a6a4a10 commit c240163
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
FROM docker.io/golang:1.22-alpine as dev-builder
WORKDIR /app
COPY cmd ./cmd
COPY pkg ./pkg
COPY domain ./domain
COPY ports ./ports
COPY usecase ./usecase
COPY adapters ./adapters
COPY go.mod .
COPY go.sum .
RUN go mod tidy
RUN go test ./pkg/**/* -coverprofile=coverage.out
RUN go test ./domain/*.go -coverprofile=coverage-domain.out
RUN go test ./ports/*.go -coverprofile=coverage-ports.out
RUN go test ./usecase/*.go -coverprofile=coverage-usecase.out
RUN go build -o main ./cmd/main.go


Expand Down

0 comments on commit c240163

Please sign in to comment.