فهرست منبع

[postgrest] Fix build (#7342)

Joan Miquel 3 سال پیش
والد
کامیت
d45623e129
2فایلهای تغییر یافته به همراه22 افزوده شده و 3 حذف شده
  1. 19 0
      frameworks/Haskell/postgrest/postgrest.conf
  2. 3 3
      frameworks/Haskell/postgrest/postgrest.dockerfile

+ 19 - 0
frameworks/Haskell/postgrest/postgrest.conf

@@ -0,0 +1,19 @@
+db-uri = "$(PGRST_DB_URI)"
+db-schema = "$(PGRST_DB_SCHEMA)"
+db-anon-role = "$(PGRST_DB_ANON_ROLE)"
+db-pool = "$(PGRST_DB_POOL)"
+db-extra-search-path = "$(PGRST_DB_EXTRA_SEARCH_PATH)"
+
+server-host = "$(PGRST_SERVER_HOST)"
+server-port = "$(PGRST_SERVER_PORT)"
+
+openapi-server-proxy-uri = "$(PGRST_OPENAPI_SERVER_PROXY_URI)"
+jwt-secret = "$(PGRST_JWT_SECRET)"
+secret-is-base64 = "$(PGRST_SECRET_IS_BASE64)"
+jwt-aud = "$(PGRST_JWT_AUD)"
+role-claim-key = "$(PGRST_ROLE_CLAIM_KEY)"
+
+max-rows = "$(PGRST_MAX_ROWS)"
+pre-request = "$(PGRST_PRE_REQUEST)"
+root-spec = "$(PGRST_ROOT_SPEC)"
+raw-media-types = "$(PGRST_RAW_MEDIA_TYPES)"

+ 3 - 3
frameworks/Haskell/postgrest/postgrest.dockerfile

@@ -1,10 +1,10 @@
-FROM postgrest/postgrest:latest
+FROM postgrest/postgrest:latest AS builder
 
 FROM alpine
 RUN apk add postgresql-client bash
 
-COPY --from=0 /usr/local/bin/postgrest /usr/local/bin/postgrest
-COPY --from=0 /etc/postgrest.conf /etc/postgrest.conf
+COPY --from=builder /bin/postgrest /usr/local/bin/postgrest
+COPY postgrest.conf /etc/postgrest.conf
 
 ENV PGRST_DB_SCHEMA=public
 ENV PGRST_DB_ANON_ROLE=