-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 829 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
#####################################################
# Docker file to build hackathon website
# based on latest nodejs version
#####################################################
#pull the latest base image for nodejs
FROM node:carbon
# Expose the default web and net port
EXPOSE 80
# Add project files
ADD src /home/code/
WORKDIR /home/code/
ADD etc /etc
RUN apt-get update && apt-get install -y supervisor
RUN mkdir -p /var/log/supervisord
# install dependencies and cleanup temp directories
# RUN yum install -y tar curl which wget git make zeromq-devel krb5-devel xz openssl-devel lua-devel cronie gcc-c++ && \
# RUN cd /home/code
RUN npm install && npm install -g serve && npm run build
RUN rm -rf /tmp/* /root/.npm /root/.node-gyp
#run the app using supervisor
CMD /usr/bin/supervisord -n -c /etc/supervisord.conf