Commit 63bd152
Changed files (2)
bin/docker-build
@@ -8,7 +8,7 @@ FULL_NAME=$(ls pkg/*.tar.gz | xargs basename | cut -d'.' -f1)
NAME=$(echo "$FULL_NAME" | cut -d'-' -f1)
VERSION=$(echo "$FULL_NAME" | cut -d'-' -f2)
-sudo docker pull ruby:2.5.3-alpine
+sudo docker pull ruby:2.5-alpine
echo "Building..." $NAME:$VERSION
sudo docker image build \
-t "$NAME":"$VERSION" \
Dockerfile
@@ -1,4 +1,4 @@
-FROM ruby:2.5.3-alpine
+FROM ruby:2.5-alpine
ENV RAILS_ENV production
ENV RAILS_LOG_TO_STDOUT true
ENV RAILS_SERVE_STATIC_FILES true
@@ -10,7 +10,7 @@ RUN apk update && \
apk upgrade && \
apk add $PACKAGES && \
rm -fr /var/cache/apk/* && \
- bundle install --deployment --jobs "$(nproc)" --local && \
+ bundle install --deployment --without development test --jobs "$(nproc)" --local && \
apk del build-base && \
rm -fr vendor/cache
RUN adduser -D -u 1000 rails && chown -R rails:rails /app/