mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
Include psql in the docker image
This commit is contained in:
parent
888f4ad36c
commit
5297b98273
1 changed files with 3 additions and 6 deletions
|
@ -5,18 +5,14 @@ FROM ${IMAGE_HOST}:${IMAGE_LABEL}
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
COPY requirements.txt requirements.txt
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
libpq5 \
|
libpq5 \
|
||||||
libxslt1.1 \
|
libxslt1.1 \
|
||||||
nginx \
|
nginx \
|
||||||
busybox \
|
busybox \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
COPY requirements.txt requirements.txt
|
|
||||||
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y --no-install-recommends \
|
|
||||||
netcat \
|
netcat \
|
||||||
gcc \
|
gcc \
|
||||||
libc6-dev \
|
libc6-dev \
|
||||||
|
@ -24,6 +20,7 @@ RUN apt-get update \
|
||||||
# Required to build lxml on arm64.
|
# Required to build lxml on arm64.
|
||||||
libxslt1-dev \
|
libxslt1-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
|
postgresql-client \
|
||||||
&& python3 -m pip install --no-cache-dir --upgrade -r requirements.txt \
|
&& python3 -m pip install --no-cache-dir --upgrade -r requirements.txt \
|
||||||
&& apt-get purge -y --auto-remove \
|
&& apt-get purge -y --auto-remove \
|
||||||
gcc \
|
gcc \
|
||||||
|
|
Loading…
Reference in a new issue