Updated dockerfile to support remote plugins
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
FROM golang:1.24-bullseye AS builder
|
FROM golang:1.24-bullseye AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /workspace/app
|
||||||
COPY cmd/adapter ./cmd/adapter
|
COPY cmd/adapter ./cmd/adapter
|
||||||
COPY core/ ./core
|
COPY core/ ./core
|
||||||
COPY pkg/ ./pkg
|
COPY pkg/ ./pkg
|
||||||
@@ -16,7 +16,7 @@ FROM cgr.dev/chainguard/wolfi-base
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy only the built binary and plugin
|
# Copy only the built binary and plugin
|
||||||
COPY --from=builder /app/server .
|
COPY --from=builder /workspace/app/server .
|
||||||
|
|
||||||
# Expose port 8080
|
# Expose port 8080
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -2,8 +2,6 @@ module github.com/beckn/beckn-onix
|
|||||||
|
|
||||||
go 1.24
|
go 1.24
|
||||||
|
|
||||||
toolchain go1.23.4
|
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/kr/pretty v0.3.1 // indirect
|
github.com/kr/pretty v0.3.1 // indirect
|
||||||
github.com/rogpeppe/go-internal v1.13.1 // indirect
|
github.com/rogpeppe/go-internal v1.13.1 // indirect
|
||||||
|
|||||||
Reference in New Issue
Block a user