Skip to content

Commit f3390a1

Browse files
committed
rebase v2 and fix dockerfile with alpine
1 parent 6d2562d commit f3390a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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"
155155
ENV PDP_REMOTE_CONFIG_ENDPOINT="/v2/pdps/me/config"
156156
ENV PDP_REMOTE_STATE_ENDPOINT="/v2/pdps/me/state"
157157
ENV PDP_VERSION_FILE_PATH="/app/permit_pdp_version"
158+
ENV PDP_DATA_MANAGER_BINARY_PATH="/app/bin/factstore"
158159
# expose sidecar port
159160
EXPOSE 7000
160161
# expose opa directly

0 commit comments

Comments
 (0)