-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (31 loc) · 999 Bytes
/
Dockerfile
File metadata and controls
42 lines (31 loc) · 999 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
40
41
42
FROM mhart/alpine-node:0.10.48
MAINTAINER Fabrice Le Coz <fabrice.lecoz@telecomsante.com>
RUN apk add -U supervisor && \
npm install -g npm@3.10.5 && \
npm install bower -g && \
mkdir -p /src && \
mkdir -p /logs && \
mkdir -p /config
# conf-register install
COPY install/conf-register/* /opt/conf-register/
RUN cd /opt/conf-register && \
npm install && \
chmod a+x /opt/conf-register/conf-register
# conf-watch install
COPY install/conf-watch/* /opt/conf-watch/
RUN cd /opt/conf-watch && \
npm install && \
chmod a+x /opt/conf-watch/confd-watch
COPY install/supervisord.ini /etc/supervisor.d/
# Install the application
COPY src /src
RUN cd src && \
npm install --production
VOLUME ["/config","/logs"]
USER root
LABEL version="1.0.3"
LABEL name="physiodom-queue"
LABEL description="Physiodom HHRPro queue service to a SServer"
EXPOSE 80
WORKDIR /src
CMD ["/usr/bin/supervisord"]