Merge branch 'master' of github.com:standardnotes/web
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -18,6 +18,22 @@ WORKDIR /app/
|
|||||||
|
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
|
|
||||||
|
###
|
||||||
|
# FOR PRODUCTION USE:
|
||||||
|
#
|
||||||
|
# If you need the app to continue listening on HTTP instead of HTTPS
|
||||||
|
# (like terminating SSL on upstream server, i.e. Nginx proxy_pass to HTTP),
|
||||||
|
# you will need to set 'config.force_ssl = false' in 'config/environments/production.rb'.
|
||||||
|
#
|
||||||
|
# Uncomment SECRET_KEY_BASE, RAILS_ENV, and [optionally] RAILS_SERVE_STATIC_FILES for production:
|
||||||
|
# ENV SECRET_KEY_BASE=[VALUE OF `bundle exec rake secret`]
|
||||||
|
#
|
||||||
|
# ENV RAILS_ENV=production
|
||||||
|
#
|
||||||
|
# ENV RAILS_SERVE_STATIC_FILES=true
|
||||||
|
# Leave RAILS_SERVE_STATIC_FILES commented if Nginx/Apache will serve static files instead of rails.
|
||||||
|
###
|
||||||
|
|
||||||
RUN bundle install
|
RUN bundle install
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
@@ -28,6 +44,9 @@ RUN bundle exec rake bower:install
|
|||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
# Uncomment the line below for production:
|
||||||
|
# RUN bundle exec rake assets:precompile
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
ENTRYPOINT [ "./docker/entrypoint" ]
|
ENTRYPOINT [ "./docker/entrypoint" ]
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ CMD=$1
|
|||||||
case "$CMD" in
|
case "$CMD" in
|
||||||
'start' )
|
'start' )
|
||||||
echo `pwd`
|
echo `pwd`
|
||||||
|
rm -f /app/tmp/pids/server.pid
|
||||||
bundle exec rails s -b 0.0.0.0
|
bundle exec rails s -b 0.0.0.0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user