2.5.3-debian-9-r0-prod release

This commit is contained in:
Bitnami Bot 2019-02-04 15:11:42 +00:00
parent 5bf853bb50
commit 87dbb0ba98
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,20 @@
FROM bitnami/ruby:2.5.3-debian-9-r98 as development
######
FROM bitnami/minideb:stretch
LABEL maintainer "Bitnami <containers@bitnami.com>"
# Install required system packages and dependencies
RUN install_packages ca-certificates ghostscript imagemagick libc6 libgmp-dev libncurses5 libreadline7 libssl1.0.2 libtinfo5 libxml2-dev libxslt1-dev zlib1g zlib1g-dev
RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs && \
sed -i 's/^PASS_MIN_DAYS.*/PASS_MIN_DAYS 0/' /etc/login.defs && \
sed -i 's/sha512/sha512 minlen=8/' /etc/pam.d/common-password
COPY --from=development /opt/bitnami/ruby /opt/bitnami/ruby
ENV BITNAMI_APP_NAME="ruby" \
BITNAMI_IMAGE_VERSION="2.5.3-debian-9-r0-prod" \
PATH="/opt/bitnami/ruby/bin:$PATH"
CMD [ "irb" ]

View File

@ -0,0 +1,11 @@
version: '2'
services:
ruby:
tty: true # Enables debugging capabilities when attached to this container.
image: 'bitnami/ruby:2.5-prod'
# command: sh -c 'bundle install && bundle exec rails server -b 0.0.0.0 -p 3000'
ports:
- 3000:3000
volumes:
- .:/app