API de comptabilité horaire.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #
  2. # This is an unofficial Alpine image embedding rbenv
  3. # Inspired by https://github.com/didlich/docker-alpine-rbenv/blob/master/Dockerfile
  4. #
  5. FROM alpine:3.15
  6. RUN apk add --update \
  7. bash \
  8. git \
  9. wget \
  10. curl \
  11. vim \
  12. build-base \
  13. readline-dev \
  14. openssl-dev \
  15. zlib-dev \
  16. && rm -rf /var/cache/apk/*
  17. # rbenv
  18. ENV PATH /usr/local/rbenv/shims:/usr/local/rbenv/bin:$PATH
  19. ENV RBENV_ROOT /usr/local/rbenv
  20. ENV RUBY_VERSION 3.0.2
  21. ENV CONFIGURE_OPTS --disable-install-doc
  22. RUN apk add --update \
  23. linux-headers \
  24. imagemagick-dev \
  25. libffi-dev \
  26. libffi-dev \
  27. libpq-dev \
  28. && rm -rf /var/cache/apk/*
  29. RUN git clone --depth 1 git://github.com/sstephenson/rbenv.git ${RBENV_ROOT} \
  30. && git clone --depth 1 https://github.com/sstephenson/ruby-build.git ${RBENV_ROOT}/plugins/ruby-build \
  31. && git clone --depth 1 git://github.com/jf/rbenv-gemset.git ${RBENV_ROOT}/plugins/rbenv-gemset \
  32. && ${RBENV_ROOT}/plugins/ruby-build/install.sh
  33. RUN echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
  34. RUN rbenv install $RUBY_VERSION \
  35. && rbenv global $RUBY_VERSION
  36. RUN gem install bundler
  37. WORKDIR /app
  38. # Getting required gems
  39. COPY Gemfile ./
  40. RUN bundle install
  41. COPY [^Gemfile]* ./
  42. # RUN RAILS_ENV=production / db:create
  43. # RUN / db:migrate
  44. # Deleting useless packages
  45. # RUN apk del git wget curl build-base \
  46. # rm -rf /var/cache/apk/*
  47. EXPOSE 9000
  48. CMD [ "top" ]
  49. # CMD [ "rails", "server", "-p 9000", "-b 127.0.0.1", "-e production" ]