[Git][noosfero/noosfero][dockerizing-noosfero] adding dockerfile

Leandro Nunes gitlab at mg.gitlab.com
Fri Jan 5 14:17:10 BRST 2018


Leandro Nunes pushed to branch dockerizing-noosfero at Noosfero / noosfero


Commits:
a6887b0d by Leandro Nunes dos Santos at 2018-01-05T13:16:51-03:00
adding dockerfile

- - - - -


1 changed file:

- + Dockerfile


Changes:

=====================================
Dockerfile
=====================================
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,24 @@
+FROM ruby:2.3
+
+RUN mkdir -p /usr/src/app
+WORKDIR /usr/src/app
+
+RUN apt-get update && apt-get install -y postgresql-client vim --no-install-recommends && rm -rf /var/lib/apt/lists/*
+
+ENV RAILS_ENV production
+ENV RAILS_SERVE_STATIC_FILES true
+ENV RAILS_LOG_TO_STDOUT true
+
+COPY Gemfile /usr/src/app/
+COPY Gemfile.lock /usr/src/app/
+#RUN bundle config --global frozen 1
+RUN bundle install --without development test
+
+COPY . /usr/src/app
+#RUN bundle exec rake DATABASE_URL=postgresql:does_not_exist assets:precompile
+RUN bundle exec rake db:schema:load
+RUN bundle exec rake db:migrate
+RUN bundle exec rake assets:precompile
+
+EXPOSE 3000
+CMD ["rails", "server", "-b", "0.0.0.0"]



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/a6887b0d0e50c5076cd3a170e9d42dd5739e4936

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/a6887b0d0e50c5076cd3a170e9d42dd5739e4936
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180105/e1c5095f/attachment-0001.html>


More information about the Noosfero-dev mailing list