Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #221 from ph448/psycopg-docker
Browse files Browse the repository at this point in the history
Psycopg docker
  • Loading branch information
ph448 authored Apr 17, 2019
2 parents 4812252 + a106d00 commit 0abdf86
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@ FROM debian:stretch

# Install additional Debian packages
RUN apt-get -y update && apt-get upgrade -y && apt-get install -y \
vim python python-pip \
vim python python-pip python-dev\
openssl userv openssh-client \
apache2 apache2-utils libapache2-mod-wsgi \
libssl-dev libjpeg-dev netcat zlib1g-dev
libssl-dev libjpeg-dev netcat zlib1g-dev \
libpq-dev build-essential

# Update pip and install Python dependencies. Note that vmmanager is installed
# from a local copy of the source. We use pip install -e to install vmmanager so
# that, if a local developer mounts the vmmanager sources as a volume, changes
# in the sources are reflected within the container.
# in the sources are reflected within the container. We clean up the apt cache
# and build dependencies afterwards
COPY mws/requirements.txt ./
COPY vmmanager /usr/src/vmmanager
RUN pip install /usr/src/vmmanager && \
pip install --upgrade -r requirements.txt
pip install --upgrade -r requirements.txt && \
apt-get -y purge python-dev libssl-dev libjpeg-dev \
zlib1g-dev libpq-dev build-essential && \
apt-get -y autoremove && apt-get -y clean

# Provide wait-for-it within the container
COPY docker/wait-for-it.sh ./
Expand Down

0 comments on commit 0abdf86

Please sign in to comment.