-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (25 loc) · 992 Bytes
/
Dockerfile
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
FROM ubuntu:16.04
MAINTAINER Peter Lauri <[email protected]>
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 \
DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
PYTHON_PIP_VERSION=8.1.1 PYTHONHASHSEED=random
# Dependencies:
# - openssh-client: ssh-keyscan etc.
# - python-dev: python compiling
# - libpq-dev: to be able to build/use psycopg2 python package
# - git: for pip git installs
# - curl: to download stuff for builds
RUN apt-get update && apt-get install -y \
ca-certificates libssl1.0.0 \
openssh-client python-dev libpq-dev git curl && rm -rf /var/lib/apt/lists/*
# installing pip
RUN set -eEx \
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2.7 - --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION
# setting up the virtual environment
RUN pip install virtualenv
RUN virtualenv /venv
# uwsgi setups
EXPOSE 80
ADD uwsgi.ini /uwsgi.ini
CMD ["/venv/bin/uwsgi", "--ini", "/uwsgi.ini"]