-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
31 lines (22 loc) · 848 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
# Use phusion/baseimage as base image. To make your builds reproducible, make
# sure you lock down to a specific version, not to `latest`!
# See https://github.com/phusion/baseimage-docker/blob/master/Changelog.md for
# a list of version numbers.
FROM phusion/baseimage:0.9.16
COPY build.sh /tmp/
RUN /tmp/build.sh
# Add the nginx runit script
RUN mkdir /etc/service/nginx
COPY nginx.sh /etc/service/nginx/run
# Add the manager nodejs app
RUN mkdir /opt/k8s-svc-gw-mgr/
COPY k8s-svc-gw-mgr/package.json /opt/k8s-svc-gw-mgr/
RUN cd /opt/k8s-svc-gw-mgr && npm install
COPY k8s-svc-gw-mgr /opt/k8s-svc-gw-mgr/
# Add the runit script for the mgr app
RUN mkdir /etc/service/k8s-svc-gw-mgr
COPY k8s-svc-gw-mgr.sh /etc/service/k8s-svc-gw-mgr/run
EXPOSE 80 443
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# Clean up APT when done.