-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathDockerfile
30 lines (25 loc) · 1.08 KB
/
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
FROM encoflife/ruby
MAINTAINER Jeremy Rice <jrice@eol.org>
ENV LAST_FULL_REBUILD 2015-03-05
RUN apt-get update -q && \
apt-get install -qq -y software-properties-common nodejs \
libmysqlclient-dev libqt4-dev supervisor vim && \
add-apt-repository -y ppa:nginx/stable && \
apt-get update && \
apt-get install -qq -y nginx && \
echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \
chown -R www-data:www-data /var/lib/nginx && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /app
COPY config/docker/nginx-sites.conf /etc/nginx/sites-enabled/default
COPY config/docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY . /app
RUN bundle install --without test test_dev development staging staging_dev \
bocce_demo bocce_demo_dev staging_dev_cache acceptance
RUN mkdir -p /app/public/uploads/data_search_files && \
mkdir -p /app/public/uploads/datasets && \
mkdir -p /app/public/uploads/images && \
chmod a+rx /app/public/uploads/* && \
chown -R www-data:www-data /app/public/uploads
CMD /usr/bin/supervisord