Dockerfile.development
FROM ruby:3.3.5-alpine RUN addgroup app --gid 1000RUN adduser -SD -u 1000 --shell /bin/bash --home /home/app app app ARG APPVERSION=unknownARG APP_BUILD_DATE=unknownARG APP_GIT_COMMIT=unknownARG APP_BUILD_TAG=unknown # Setting up ping.json variablesENV APPVERSION ${APPVERSION}ENV APP_BUILD_DATE ${APP_BUILD_DATE}ENV APP_GIT_COMMIT ${APP_GIT_COMMIT}ENV APP_BUILD_TAG ${APP_BUILD_TAG} EXPOSE 8080 COPY --chown=app:app . /home/app/et1RUN chown -R app:app /usr/local/bundleRUN apk add --no-cache libpq-dev tzdata gettext sudo shared-mime-info curl-dev file bash libc6-compat && \ apk add --no-cache postgresql-client~=11.12 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.10/main && \ apk add --no-cache git build-base nodejs yarnUSER appRUN cd /home/app/et1 && \ BUNDLER_VERSION=$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1 | awk '{$1=$1};1') && \ gem install bundler:$BUNDLER_VERSION invoker && \ bundle config set with "test development" && \ bundle config set without "production" && \ bundle config set deployment 'true' && \ bundle install && \ yarn installENV HOME /home/appWORKDIR /home/app/et1ENV RAILS_ENV=developmentENV NODE_OPTIONS=--openssl-legacy-providerCMD ["bundle", "exec", "puma"]