Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk committed Nov 4, 2024
1 parent 57ece66 commit a2d2eef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ COPY go.mod go.sum ./
RUN go mod download

COPY . .
RUN VERSION=`git describe --tags` && \
CGO_ENABLED=0 GOOS=linux go build -o tfgrid-kyc -ldflags "-X github.com/threefoldtech/tf-kyc-verifier/internal/build.Version=$VERSION" cmd/api/main.go
RUN VERSION=$(git describe --tags --always) && \
CGO_ENABLED=0 GOOS=linux go build -o tfkycv -ldflags "-X github.com/threefoldtech/tf-kyc-verifier/internal/build.Version=$VERSION" cmd/api/main.go

FROM alpine:3.19

COPY --from=builder /app/tfgrid-kyc .
COPY --from=builder /app/tfkycv .
RUN apk --no-cache add curl

ENTRYPOINT ["/tfgrid-kyc"]
ENTRYPOINT ["/tfkycv"]

EXPOSE 8080

0 comments on commit a2d2eef

Please sign in to comment.