bitnami-containers/bitnami/rails/6/ol-7/Dockerfile

25 lines
1.4 KiB
Docker

FROM bitnami/oraclelinux-extras:7-r485
LABEL maintainer "Bitnami <containers@bitnami.com>"
# Install required system packages and dependencies
RUN install_packages bzip2-libs ca-certificates cyrus-sasl-lib gcc-c++ glibc keyutils-libs krb5-libs libcom_err libcurl libgcc libidn libselinux libssh2 libstdc++ libxml2 make mysql-devel nc ncurses-libs nspr nss nss-softokn-freebl nss-util openldap openssl-libs pcre pkgconfig readline sqlite zlib
RUN bitnami-pkg install ruby-2.6.5-0 --checksum 29ef6f1ed911c95ada9710d617438ec90e6e822cae31d2b82d578f9b9e7b1c30
RUN bitnami-pkg install node-10.16.3-1 --checksum 805e94a7c1a7d12b2a7e82dbc45e668eae53459111c39a7f61a552151f10ecac
RUN bitnami-pkg install mysql-client-10.3.18-2 --checksum c9d987cf8f6f6831d04920d64598d0c77cf994235753cf4d5d18ac787c12918e
RUN bitnami-pkg install git-2.23.0-1 --checksum a145f72a986e09dbdb13ce0d1ccbaf2bb78c8571610f4d3d61b8d97abab0c342
RUN bitnami-pkg install rails-6.0.0-0-1 --checksum 8e77ab81e1cbd941ca4d8d4871a932b02ce8b96742346e382b2d994f205825e5
RUN mkdir /app && chown bitnami:bitnami /app
COPY rootfs /
ENV BITNAMI_APP_NAME="rails" \
BITNAMI_IMAGE_VERSION="6.0.0-0-ol-7-r32" \
PATH="/opt/bitnami/ruby/bin:/opt/bitnami/node/bin:/opt/bitnami/mysql/bin:/opt/bitnami/git/bin:/opt/bitnami/rails/bin:$PATH" \
RAILS_ENV="development"
EXPOSE 3000
WORKDIR /app
USER bitnami
ENTRYPOINT [ "/app-entrypoint.sh" ]
CMD [ "bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "3000" ]