Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add Postgres dependencies to docker image

Scott Peshak1c7e735e7c9e
diff --git a/extras/docker/apache/Dockerfile b/extras/docker/apache/Dockerfile
index 2aa0fb9c7..12d93b0bd 100644
--- a/extras/docker/apache/Dockerfile
+++ b/extras/docker/apache/Dockerfile
@@ -22,7 +22,10 @@ ENV LC_ALL en_US.UTF-8
# Install dependencies
RUN apt-get update \
- && apt-get install -y apache2 libapache2-mod-wsgi-py3
+ && apt-get install --no-install-recommends -y \
+ apache2 \
+ libapache2-mod-wsgi-py3 \
+ && rm -rf /var/lib/apt/lists/*
# Configure apache
RUN a2dissite 000-default.conf
diff --git a/extras/docker/base/Dockerfile b/extras/docker/base/Dockerfile
index 3bc6b92f1..a0313c146 100644
--- a/extras/docker/base/Dockerfile
+++ b/extras/docker/base/Dockerfile
@@ -13,11 +13,24 @@ FROM ubuntu:16.04
MAINTAINER Roland Geider <[email protected]>
# Install dependencies
-RUN apt-get update\
- && apt-get install -y nodejs npm git \
- python-virtualenv python3-dev \
- libjpeg8-dev zlib1g-dev libwebp-dev \
- sudo
+RUN apt-get update \
+ && apt-get install --no-install-recommends -y \
+ build-essential \
+ git \
+ libjpeg8-dev \
+ libpq-dev \
+ libwebp-dev \
+ locales \
+ nodejs \
+ npm \
+ python-virtualenv \
+ python3-dev \
+ python3-venv \
+ sudo \
+ virtualenv \
+ zlib1g-dev \
+ && rm -rf /var/lib/apt/lists/*
+
# Add wger user
RUN adduser wger --disabled-password --gecos ""
diff --git a/requirements.txt b/requirements.txt
index 8e6f98681..4ac9fbdf7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -20,6 +20,7 @@ reportlab>=3.3,<3.4
requests
setuptools>=18.5
sphinx
+psycopg2
# REST API
django-cors-headers==2.0.2