/
Dockerfile.aptible
37 lines (27 loc) · 1.1 KB
/
Dockerfile.aptible
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Dockerfile
FROM quay.io/aptible/ubuntu:14.04
ADD .aptible.env /app/
RUN cat /app/.aptible.env
RUN apt-install software-properties-common wget
RUN add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main"
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# Basic dependencies
RUN apt-install build-essential python-dev python-setuptools
RUN apt-install libxml2-dev libxslt1-dev python-dev
# PostgreSQL dev headers and client (uncomment if you use PostgreSQL)
RUN apt-install libpq-dev postgresql-client-9.5
RUN easy_install pip
# Add requirements.txt ONLY, then run pip install, so that Docker cache won't
# bust when changes are made to other repo files
ADD requirements.txt /app/
WORKDIR /app
RUN pip install -r requirements.txt
RUN django-admin startproject pdk
ADD . pdk/passive_data_kit
ADD aptible_settings.py pdk/pdk/settings.py
ADD aptible_wsgi.py pdk/pdk/wsgi.py
# WORKDIR /app/pdk
# RUN set -a && . /app/.aptible.env && python manage.py migrate
# RUN set -a && . /app/.aptible.env && python manage.py collectstatic
ENV PORT 3000
EXPOSE 3000