Skip to content

Commit 2558799

Browse files
authored
fix psycopg2 installation failure (#9)
1 parent fbe58a4 commit 2558799

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ ENV LANG en_US.UTF-8
66
RUN ln -s -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
77
curl -fsSL https://setup.ius.io/ | sh && \
88
yum update -y && \
9-
yum install -y python36u python36u-devel python36u-pip && \
9+
yum install -y python36u python36u-devel python36u-pip gcc postgresql-libs postgresql-devel && \
1010
mkdir ~/.pip && \
1111
echo -e "[global]\nindex-url=http://pypi.douban.com/simple/\ntrusted-host=pypi.douban.com">~/.pip/pip.conf && \
1212
yum clean all
1313

1414
RUN yum install -y supervisor
1515

1616
RUN mkdir -p /deploy
17-
#VOLUME /deploy
1817
WORKDIR /deploy
1918
COPY requirements.txt /deploy/requirements.txt
2019
RUN pip3.6 install -r requirements.txt --timeout=120

0 commit comments

Comments
 (0)