FROM docker.io/timescale/timescaledb:2.27.1-pg16

LABEL org.opencontainers.image.title="datahub-timescaledb2" \
      org.opencontainers.image.vendor="WPIC" \
      org.opencontainers.image.licenses="LicenseRef-WPIC-Proprietary" \
      org.opencontainers.image.source="https://repo.yneed.cn/wpic-dev/datahub"

ARG TIMEZONE=Asia/Shanghai
ENV TZ=${TIMEZONE} \
    LANG=en_US.utf8

COPY initdb/ /docker-entrypoint-initdb.d/

EXPOSE 5432
