forked from lyft/confidant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (21 loc) · 939 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:trusty
MAINTAINER Ryan Lane <[email protected]>
RUN apt-get update && \
# For frontend
apt-get install -y ruby-full npm nodejs nodejs-legacy git git-core && \
# For backend
apt-get install -y python python-pip python-dev build-essential libffi-dev \
libxml2-dev libxmlsec1-dev
COPY ./piptools_requirements.txt /srv/confidant/piptools_requirements.txt
COPY ./requirements.txt /srv/confidant/requirements.txt
COPY ./package.json /srv/confidant/package.json
COPY ./bower.json /srv/confidant/bower.json
WORKDIR /srv/confidant
RUN pip install -U pip && pip install -r piptools_requirements.txt && pip install -r requirements.txt
RUN gem install compass && \
npm install grunt-cli && \
npm install
COPY . /srv/confidant
RUN node_modules/grunt-cli/bin/grunt build
EXPOSE 80
CMD ["gunicorn","confidant.wsgi:app","--workers=2","-k","gevent","--access-logfile=-","--error-logfile=-"]