Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiidb committed Sep 22, 2023
1 parent 6abe2df commit 690ee17
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ RUN go mod download
COPY . .

# Build the application
RUN go build -o main
RUN go build -o main ./cmd/server

# Build the utility scripts
RUN go build -o main ./cmd/invoice-republishing
RUN go build -o main ./cmd/payment-reconciliation

# 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/main /bin/
COPY --from=builder /build/invoice-republishing /bin/
COPY --from=builder /build/payment-reconciliation /bin/

ENTRYPOINT [ "/bin/main" ]

0 comments on commit 690ee17

Please sign in to comment.