37 lines
1.1 KiB
Docker
37 lines
1.1 KiB
Docker
FROM ubuntu:trusty
|
|
MAINTAINER Philippe Pepos Petitclerc <philippe.pepos-petitclerc@savoirfairelinux.com>
|
|
|
|
# Set the locale
|
|
RUN locale-gen en_US.UTF-8
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US:en
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
RUN apt-get update && apt-get install -yq git apache2 npm nodejs-legacy supervisor ruby
|
|
RUN npm install -g grunt-cli bower
|
|
RUN gem install sass
|
|
RUN mkdir -p /var/lock/apache2 /var/run/apache2 /var/run/sshd /var/log/supervisor
|
|
|
|
# Add supervisor config files
|
|
COPY container/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
# Configure Apache2 for reverse-proxying
|
|
ADD container/000-default.conf etc/apache2/sites-enabled/000-default.conf
|
|
ADD container/ports.conf etc/apache2/ports.conf
|
|
|
|
ADD /package.json /opt/adagios-frontend/package.json
|
|
ADD /.bowerrc /opt/adagios-frontend/.bowerrc
|
|
ADD /.jshintrc /opt/adagios-frontend/.jshintrc
|
|
ADD /Gruntfile.js /opt/adagios-frontend/Gruntfile.js
|
|
ADD /bower.json /opt/adagios-frontend/bower.json
|
|
RUN cd /opt/adagios-frontend/ && npm install --unsafe-perm
|
|
ADD /app /opt/adagios-frontend/app
|
|
|
|
RUN a2enmod proxy
|
|
RUN a2enmod proxy_http
|
|
|
|
# Expose appropriate ports
|
|
EXPOSE 8080
|
|
|
|
CMD ["/usr/bin/supervisord"]
|