forked from brutasse/graphite-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 725 Bytes
/
Dockerfile
File metadata and controls
28 lines (18 loc) · 725 Bytes
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
FROM stackbrew/ubuntu:12.04
MAINTAINER Bruno Renié <bruno@renie.fr>
VOLUME /srv/graphite
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y language-pack-en
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales
RUN apt-get install -y build-essential python-dev libffi-dev libcairo2-dev python-pip
RUN pip install gunicorn graphite-api[sentry,cyanite]
ONBUILD ADD graphite-api.yaml /etc/graphite-api.yaml
ONBUILD RUN chmod 0644 /etc/graphite-api.yaml
EXPOSE 8000
CMD gunicorn -b 0.0.0.0:8000 -w 2 --log-level debug graphite_api.app:app