FROM postgres:12.6-alpine ARG NGAS_VERSION=11.0.2 WORKDIR /repos RUN apk add git && \ git clone --depth 1 --branch "v${NGAS_VERSION}" https://github.com/ICRAR/ngas.git WORKDIR / COPY ./ci/psql/init_ngas_db.sh ./ci/psql/test_data_archive.sql.gz /docker-entrypoint-initdb.d/ CMD ["postgres"]