akarpov/compose/production/postgres/Dockerfile

12 lines
419 B
Docker
Raw Normal View History

FROM postgres:16
2022-11-23 11:41:43 +03:00
RUN apt-get update && \
apt-get install -y postgresql-14-pgvector && \
apt-get purge -y --auto-remove -o APT:AutoRemove:RecommendsImportant=false && \
rm -rf /var/lib/apt/lists/*
2022-11-23 11:41:43 +03:00
COPY ./compose/production/postgres/maintenance /usr/local/bin/maintenance
RUN chmod +x /usr/local/bin/maintenance/*
RUN mv /usr/local/bin/maintenance/* /usr/local/bin \
&& rmdir /usr/local/bin/maintenance