File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ RUN if [ -f /custom/custom_opa.tar.gz ]; \
1010 then \
1111 cd /custom && \
1212 tar xzf custom_opa.tar.gz && \
13- go build -o /opa && \
13+ go build -ldflags= "-extldflags=-static" - o /opa && \
1414 rm -rf /custom ; \
1515 else \
1616 case $(uname -m) in \
@@ -31,7 +31,7 @@ RUN if [ -f /datasync/datasync.tar.gz ]; \
3131 then \
3232 cd /datasync && \
3333 tar xzf datasync.tar.gz && \
34- go build -o /factstore ./cmd/factstore_server && \
34+ go build -ldflags= "-extldflags=-static" - o /factstore ./cmd/factstore_server && \
3535 rm -rf /datasync ; \
3636 else \
3737 case $(uname -m) in \
@@ -155,6 +155,7 @@ ENV PDP_API_KEY="MUST BE DEFINED"
155155ENV PDP_REMOTE_CONFIG_ENDPOINT="/v2/pdps/me/config"
156156ENV PDP_REMOTE_STATE_ENDPOINT="/v2/pdps/me/state"
157157ENV PDP_VERSION_FILE_PATH="/app/permit_pdp_version"
158+ ENV PDP_DATA_MANAGER_BINARY_PATH="/app/bin/factstore"
158159# expose sidecar port
159160EXPOSE 7000
160161# expose opa directly
You can’t perform that action at this time.
0 commit comments