mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
docker postegresql compatibility
This commit is contained in:
parent
0dc34bb921
commit
28d4a44711
1 changed files with 13 additions and 3 deletions
16
Dockerfile
16
Dockerfile
|
@ -30,17 +30,27 @@ ENV DEBUG="False" \
|
|||
|
||||
ADD . /src
|
||||
|
||||
RUN echo "**** install runtime packages ****" && \
|
||||
RUN echo "**** install build dependencies ****" &&\
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
gcc \
|
||||
musl-dev \
|
||||
postgresql-dev &&\
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
shadow && \
|
||||
shadow \
|
||||
postgresql-libs && \
|
||||
echo "**** create runtime folder ****" && \
|
||||
mkdir -p /etc/ihatemoney &&\
|
||||
echo "**** install pip packages ****" && \
|
||||
pip install --no-cache-dir gunicorn pymysql && \
|
||||
pip install --no-cache-dir \
|
||||
gunicorn \
|
||||
pymysql \
|
||||
psycopg2 && \
|
||||
pip install --no-cache-dir -e /src && \
|
||||
echo "**** create user abc:abc ****" && \
|
||||
useradd -u 1000 -U -d /src abc && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge build-dependencies &&\
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
|
||||
|
|
Loading…
Reference in a new issue