mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-04 07:34:44 +00:00
14 lines
486 B
Docker
14 lines
486 B
Docker
FROM alpine:3
|
|
|
|
ENV DOCKERIZE_VERSION v0.6.1
|
|
RUN apk add --no-cache postgresql-client curl tar \
|
|
&& curl -L https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | tar -C /usr/local/bin -xzv
|
|
|
|
COPY docker/postgres-setup/init.sql /init.sql
|
|
COPY docker/postgres-setup/init.sh /init.sh
|
|
RUN chmod 755 init.sh
|
|
|
|
ENV DATAHUB_DB_NAME="datahub"
|
|
|
|
CMD dockerize -wait tcp://$POSTGRES_HOST:$POSTGRES_PORT -timeout 240s /init.sh
|