commit before merge
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
2.1.2
|
2.2.0
|
||||||
|
|||||||
+28
-27
@@ -1,27 +1,28 @@
|
|||||||
FROM bterkuile/ruby-base
|
FROM rails:onbuild
|
||||||
|
#FROM bterkuile/ruby-base
|
||||||
MAINTAINER Benjamin ter Kuile <bterkuile@gmail.com>
|
#
|
||||||
|
#MAINTAINER Benjamin ter Kuile <bterkuile@gmail.com>
|
||||||
# Add 'web' user which will run the application
|
#
|
||||||
RUN adduser web --home /home/web --shell /bin/bash --disabled-password --gecos ""
|
## Add 'web' user which will run the application
|
||||||
|
#RUN adduser web --home /home/web --shell /bin/bash --disabled-password --gecos ""
|
||||||
# Separate Gemfile ADD so that `bundle install` can be cached more effectively
|
#
|
||||||
ADD Gemfile /var/www/
|
## Separate Gemfile ADD so that `bundle install` can be cached more effectively
|
||||||
ADD Gemfile.lock /var/www/
|
#ADD Gemfile /var/www/
|
||||||
RUN chown -R web:web /var/www &&\
|
#ADD Gemfile.lock /var/www/
|
||||||
mkdir -p /var/bundle &&\
|
#RUN chown -R web:web /var/www &&\
|
||||||
chown -R web:web /var/bundle
|
# mkdir -p /var/bundle &&\
|
||||||
RUN su -c "cd /var/www && bundle install --deployment --without development test assets --path /var/bundle" -s /bin/bash -l web
|
# chown -R web:web /var/bundle
|
||||||
|
#RUN su -c "cd /var/www && bundle install --deployment --without development test assets --path /var/bundle" -s /bin/bash -l web
|
||||||
# Add application source
|
#
|
||||||
ADD . /var/www
|
## Add application source
|
||||||
RUN chown -R web:web /var/www
|
#ADD . /var/www
|
||||||
|
#RUN chown -R web:web /var/www
|
||||||
USER web
|
#
|
||||||
|
#USER web
|
||||||
WORKDIR /var/www
|
#
|
||||||
|
#WORKDIR /var/www
|
||||||
#VOLUME ['/Users/bterkuile/companytools/development/rails/mozo_bar/public/system:/var/www/public/system']
|
#
|
||||||
EXPOSE 3000
|
##VOLUME ['/Users/bterkuile/companytools/development/rails/mozo_bar/public/system:/var/www/public/system']
|
||||||
|
#EXPOSE 3000
|
||||||
CMD ["bundle", "exec", "foreman", "start"]
|
#
|
||||||
|
#CMD ["bundle", "exec", "foreman", "start"]
|
||||||
|
|||||||
Reference in New Issue
Block a user