-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 919 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
FROM node:0.12
MAINTAINER Julien Fouilhe
# Install compass
RUN apt-get update -y && apt-get install -y ruby-full rubygems-integration lighttpd && gem update --system && gem install sass -v 3.2.19 && gem install compass && npm install -g bower grunt-cli
# Install modules
ADD package.json /install/package.json
RUN cd /install && npm install
# Install libraries
ADD .bowerrc /install/.bowerrc
ADD bower.json /install/bower.json
RUN cd /install && bower --allow-root install
RUN mkdir -p /flipendo-website && cp -a /install/node_modules /flipendo-website/ && cp -a /install/bower_components /flipendo-website/ && rm -rf /install
COPY . /flipendo-website
WORKDIR /flipendo-website
# Create launch shell script
RUN echo 'echo "var API_URL = \"http://$API_ADDR:$API_PORT\";" > dist/config/config.js' > launch.sh
RUN echo 'lighttpd -D -f lighttpd.conf' >> launch.sh
RUN grunt build
EXPOSE 3000
CMD ["sh", "launch.sh"]