Skip to content

Commit

Permalink
add reconciliation build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiidb committed Jul 27, 2023
1 parent d56cc02 commit 845a288
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions reconciliation.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM golang:1.20-alpine as builder

# Move to working directory /build
WORKDIR /build

# Copy and download dependency using go mod
COPY go.mod .
COPY go.sum .
RUN go mod download

# Copy the code into the container
COPY . .

# Build the application
WORKDIR /build/reconciliation_lost_invoices
RUN go build -o main

# Start a new, final image to reduce size.
FROM alpine as final

# Copy the binaries and entrypoint from the builder image.
COPY --from=builder /build/reconciliation_lost_invoices/main /bin/

ENTRYPOINT [ "/bin/main" ]

0 comments on commit 845a288

Please sign in to comment.