-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (18 loc) · 729 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (18 loc) · 729 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
29
30
31
FROM python:2.7
MAINTAINER Sławek Ehlert <slafs@op.pl>
RUN pip install -U wheel pip setuptools
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q libxslt1-dev libxml2-dev libpq-dev libldap2-dev libsasl2-dev libssl-dev
RUN mkdir -p /conf /data /wheels
ADD requirements.txt /conf/
RUN pip wheel --wheel-dir=/wheels -r /conf/requirements.txt && pip install --find-links=/wheels -r /conf/requirements.txt
EXPOSE 9000
VOLUME ["/data"]
ADD sentry_docker_conf.py /conf/
ADD sentry_run /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/sentry_run"]
CMD ["start"]
ADD scripts/create_team_or_project.py /conf/
ADD scripts/check_db_isalive.py /conf/
# some cleanup
RUN apt-get clean
RUN rm -f /wheels/*