-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (30 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
40 lines (30 loc) · 759 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
32
33
34
35
36
37
38
39
FROM ubuntu:xenial
MAINTAINER Bluesoft Fire <devops@bluesoft.com.br>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update -qq&& \
apt-get -y install \
gcc \
ipython \
libz-dev \
libxml2-dev \
libxslt1-dev \
mongodb \
python2.7 \
python2.7-dev \
libyaml-dev \
libpython2.7-dev \
python-pip
RUN pip install --upgrade pip==18.0
RUN pip install setuptools wheel
ENV APP_DIR /srv/postmon
RUN mkdir -p $APP_DIR
ADD . $APP_DIR
WORKDIR $APP_DIR
RUN pip install -r requirements.txt
RUN mkdir -p data/db
EXPOSE 9876
ENTRYPOINT mongod \
--fork \
--logpath /tmp/mongo.log \
--dbpath data/db && \
python PostmonServer.py