-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 990 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 990 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
FROM node:6
MAINTAINER "Kelvin" <kelvinkyeboah@gmail.com>
# default is 'dumb'. that cripples less, vim, coloring, et al
ENV TERM xterm-256color
# install mongodb : reference https://docs.mongodb.com/v2.6/tutorial/install-mongodb-on-debian/
# data does not persist | this is for testing purposes | a separate DB server should be used otherwise
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 \
&& echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list \
&& apt-get update \
&& apt-get install -y mongodb-org \
&& apt-get clean
RUN apt-get update \
&& apt-get install -y \
vim-tiny \
&& apt-get clean
RUN mkdir -p /usr/src/inventory-app
WORKDIR /usr/src/inventory-app
COPY . /usr/src/inventory-app
EXPOSE 3000
RUN mkdir -p /data/db/ \
&& echo "\nsmallfiles = true" >> /etc/mongod.conf \
&& npm install
ENTRYPOINT ["/usr/src/inventory-app/docker/bin/start.sh"]