mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-18 21:25:06 +01:00
update dockerfile
This commit is contained in:
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user