postgrest.dockerfile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM postgrest/postgrest:latest AS builder
  2. FROM alpine
  3. RUN apk add postgresql-client bash
  4. COPY --from=builder /bin/postgrest /usr/local/bin/postgrest
  5. COPY postgrest.conf /etc/postgrest.conf
  6. ENV PGRST_DB_SCHEMA=public
  7. ENV PGRST_DB_ANON_ROLE=
  8. ENV PGRST_DB_POOL=100
  9. ENV PGRST_DB_POOL_TIMEOUT=10
  10. ENV PGRST_DB_EXTRA_SEARCH_PATH=public
  11. ENV PGRST_DB_CHANNEL=pgrst
  12. ENV PGRST_DB_CHANNEL_ENABLED=false
  13. ENV PGRST_SERVER_HOST=*4
  14. ENV PGRST_SERVER_PORT=3000
  15. ENV PGRST_OPENAPI_SERVER_PROXY_URI=
  16. ENV PGRST_JWT_SECRET=
  17. ENV PGRST_SECRET_IS_BASE64=false
  18. ENV PGRST_JWT_AUD=
  19. ENV PGRST_MAX_ROWS=
  20. ENV PGRST_PRE_REQUEST=
  21. ENV PGRST_ROLE_CLAIM_KEY=.role
  22. ENV PGRST_ROOT_SPEC=
  23. ENV PGRST_RAW_MEDIA_TYPES=
  24. ENV PGRST_DB_URI=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database/hello_world
  25. ENV PGRST_DB_SCHEMA=public
  26. ENV PGRST_DB_ANON_ROLE=benchmarkdbuser
  27. ENV PGRST_RAW_MEDIA_TYPES="text/html, text/plain"
  28. ENV PGRST_DB_POOL=64
  29. RUN mkdir /app
  30. COPY src /app
  31. RUN chmod +x /app/entrypoint.sh
  32. WORKDIR /app
  33. EXPOSE 3000
  34. ENTRYPOINT [ "/app/entrypoint.sh" ]