-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathDockerfile
36 lines (31 loc) · 973 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
31
32
33
34
35
36
FROM ubuntu:15.04
# This stops apt from presenting interactive prompts when installing apps that
# would normally ask for them. Alternatively, check out debconf-set-selections.
ENV DEBIAN_FRONTEND=noninteractive
# groff is needed by the awscli pip package.
# rsync is needed by knife.
# zlib1g-dev is needed by the gem dependency chain.
RUN apt-get update && apt-get --yes --quiet install \
bundler \
groff \
python \
python-dev \
python-pip \
python-virtualenv \
rbenv \
rsync \
ruby-dev \
ssh \
vim \
zlib1g-dev
RUN mkdir -p /project/django_deployment
WORKDIR /project/django_deployment
# Install ruby gems
RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc
ADD ./Gemfile Gemfile
RUN bundler install
# Install Python project to a virtualenv that will activate when we log in.
ADD ./requirements.txt requirements.txt
RUN virtualenv /project/env
RUN echo "source /project/env/bin/activate" > ~/.bashrc
RUN /project/env/bin/pip --quiet install --requirement requirements.txt