-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
42 lines (34 loc) · 851 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
31
32
33
34
35
36
37
38
39
40
#
# Nodejs + npm base install
# https://registry.hub.docker.com/_/node/
#
FROM node:4
MAINTAINER Inaki Anduaga <[email protected]>
#
# Install supervisor
#
RUN apt-get update && apt-get upgrade -y && \
apt-get -y install supervisor && \
apt-get clean && apt-get autoremove -y
#
# Clone doorman repo and initialize npm packages
#
RUN apt-get -y --no-install-recommends install git && \
git clone --single-branch --branch master https://github.com/movableink/doorman.git && \
cd /doorman && \
npm install
#
# Add doorman configuration
#
COPY conf/doorman/conf.js /doorman/conf.js
EXPOSE 8085
WORKDIR /doorman
VOLUME /config
#
# Supervisor startup scripts (also includes nginx)
#
ADD conf/supervisor/ /etc/supervisor/conf.d/
ADD scripts/ /scripts/
RUN chmod 755 /scripts/*.sh
# Default command
CMD ["/scripts/start.sh"]