mirror of
https://git.tt-rss.org/fox/ttrss-docker-compose
synced 2025-06-13 15:39:51 +02:00
reduce image size
This commit is contained in:
parent
651e1323d5
commit
644093fdc5
1 changed files with 7 additions and 6 deletions
|
@ -1,15 +1,16 @@
|
||||||
FROM postgres:13
|
FROM postgres:13
|
||||||
EXPOSE 5432
|
EXPOSE 5432
|
||||||
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get -y install git libpq-dev postgresql-server-dev-13
|
|
||||||
RUN apt-get -y install gcc make
|
|
||||||
|
|
||||||
COPY init-count-bits.sh /docker-entrypoint-initdb.d/
|
COPY init-count-bits.sh /docker-entrypoint-initdb.d/
|
||||||
|
|
||||||
RUN git clone https://github.com/sldab/count-bits.git /opt/count-bits && \
|
RUN apt-get update && \
|
||||||
|
apt-get -y install git libpq-dev postgresql-server-dev-13 gcc make && \
|
||||||
|
git clone https://github.com/sldab/count-bits.git /opt/count-bits && \
|
||||||
cd /opt/count-bits && \
|
cd /opt/count-bits && \
|
||||||
make && \
|
make && \
|
||||||
sed -i.bak 's/create_functions: install/create_functions:/' Makefile && \
|
sed -i.bak 's/create_functions: install/create_functions:/' Makefile && \
|
||||||
make install
|
make install && \
|
||||||
|
apt-get -y remove git libpq-dev postgresql-server-dev-13 && \
|
||||||
|
apt-get -y autoremove && \
|
||||||
|
apt-get -y clean
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue