FROM postgres:alpine3.18 ARG BUILD_TIME LABEL dev.egommerce.image.author="Piotr Biernat" LABEL dev.egommerce.image.vendor="Egommerce" LABEL dev.egommerce.image.service="db-postgres" LABEL dev.egommerce.image.version="1.0" LABEL dev.egommerce.image.build_time=${BUILD_TIME} COPY ./db-postgres/entrypoint.sh /entrypoint.sh COPY ./.app.config / RUN mkdir -p /var/lib/postgresql/data && \ chown -R postgres /var/lib/postgresql/data && \ apk update && apk add ca-certificates USER root EXPOSE 5432 ENTRYPOINT ["/entrypoint.sh"] CMD ["postgres"]