diff --git a/Dockerfile b/Dockerfile index bbd7ba0..1b49e3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ENV RAILS_ENV production # Instalar las herramientas para instalar las gemas y paquetes RUN apk add --no-cache git tzdata libxslt libxslt-dev libxml2 libxml2-dev alpine-sdk -RUN apk add --no-cache ruby-dev ruby-bundler ruby-json ruby-bigdecimal ruby-rake +RUN apk add --no-cache ruby-dev ruby-json ruby-bigdecimal ruby-rake RUN apk add --no-cache sqlite sqlite-dev # Crear una usuaria de trabajo, más que nada para que bundler no se # queje que estamos corriendo como root @@ -31,9 +31,10 @@ COPY --chown=app:www-data ./.git/ ./.git/ RUN git archive -o ../web.tar.gz HEAD FROM lunar/monit:3.9 -RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-bundler ruby-json ruby-bigdecimal ruby-rake -RUN apk add --no-cache sqlite sqlite-libs +RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-json ruby-bigdecimal ruby-rake +RUN apk add --no-cache sqlite-libs RUN apk add --no-cache darkhttpd +RUN gem install --no-user-install --no-ri --no-rdoc bundler COPY ./entrypoint.sh /usr/bin/entrypoint RUN chmod 755 /usr/bin/entrypoint # Agregar el usuario diff --git a/Gemfile.lock b/Gemfile.lock index 19788ca..9f56cf1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -186,4 +186,4 @@ RUBY VERSION ruby 2.5.3p105 BUNDLED WITH - 1.17.3 + 2.0.1