ref: master
config/docker/dev/Dockerfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM ruby:2.3-stretch LABEL Maintainer="Noosfero Development Team <noosfero-dev@listas.softwarelivre.org>" LABEL Description="This dockerfile builds a noosfero development environment." EXPOSE 3000 RUN apt-get update && apt-get install -y sudo cron nodejs postgresql-client WORKDIR /noosfero ADD . /noosfero/ RUN echo "IRB.conf[:SAVE_HISTORY] = 100" >> .irbrc RUN echo "IRB.conf[:HISTORY_FILE] = '~/.irb-history'" >> .irbrc RUN ./script/quick-start -i ENTRYPOINT ["/noosfero/config/docker/dev/entrypoint.sh"] CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"] |