-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.build
31 lines (24 loc) · 1.04 KB
/
Dockerfile.build
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
FROM node:alpine
MAINTAINER Potter Rafed <[email protected]>
# Set working directory
WORKDIR /var/www/html
# Copy app and install dependencies
ADD ./appcode /var/www/html
# -----------------------------------------------------------------------------
# COPY SUPERVISOR CONF
# -----------------------------------------------------------------------------
COPY supervisord/supervisord.conf /etc/
COPY supervisord/conf.d /etc/supervisor/conf.d/
# -----------------------------------------------------------------------------
# Copy Custom Run Command Script
# -----------------------------------------------------------------------------
COPY /node/run.sh /usr/local/bin/
# -----------------------------------------------------------------------------
# Install required packages & node modules
# -----------------------------------------------------------------------------
RUN apk update && apk add supervisor \
&& npm install --production \
&& mkdir /etc/supervisord \
&& chmod 755 /usr/local/bin/run.sh
EXPOSE 80
CMD ["/usr/local/bin/run.sh"]