-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/bigbluebutton/greenlight …
…into SIP
- Loading branch information
Showing
44 changed files
with
3,984 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,46 @@ | ||
FROM alpine:3.17 AS alpine | ||
FROM ruby:alpine3.17 AS base | ||
|
||
ARG RAILS_ROOT=/usr/src/app | ||
ENV RAILS_ROOT=${RAILS_ROOT} | ||
|
||
FROM alpine AS base | ||
WORKDIR $RAILS_ROOT | ||
RUN apk add --no-cache \ | ||
libpq \ | ||
libxml2 \ | ||
libxslt \ | ||
ruby \ | ||
ruby-irb \ | ||
ruby-bigdecimal \ | ||
ruby-bundler \ | ||
ruby-json \ | ||
tzdata \ | ||
bash \ | ||
shared-mime-info | ||
|
||
FROM base | ||
RUN apk add --no-cache \ | ||
build-base \ | ||
curl-dev \ | ||
git \ | ||
gettext \ | ||
imagemagick \ | ||
libxml2-dev \ | ||
libxslt-dev \ | ||
pkgconf \ | ||
postgresql-dev \ | ||
ruby-dev \ | ||
nodejs npm \ | ||
yarn \ | ||
yaml-dev \ | ||
zlib-dev \ | ||
&& ( echo 'install: --no-document' ; echo 'update: --no-document' ) >>/etc/gemrc | ||
COPY . ./ | ||
RUN bundle install -j4 \ | ||
&& yarn install | ||
|
||
ARG RAILS_ENV | ||
ENV RAILS_ENV=${RAILS_ENV:-production} | ||
ARG NODE_ENV | ||
ENV NODE_ENV=${RAILS_ENV} | ||
ARG RAILS_LOG_TO_STDOUT | ||
ENV RAILS_LOG_TO_STDOUT=${RAILS_LOG_TO_STDOUT:-true} | ||
ARG RAILS_SERVE_STATIC_FILES | ||
ENV RAILS_SERVE_STATIC_FILES=${RAILS_SERVE_STATIC_FILES:-true} | ||
ARG PORT | ||
ENV PORT=${PORT:-3000} | ||
|
||
EXPOSE ${PORT} | ||
|
||
ARG VERSION_TAG | ||
ENV VERSION_TAG=$VERSION_TAG | ||
ENV PATH=$PATH:$RAILS_ROOT/bin | ||
WORKDIR $RAILS_ROOT | ||
RUN bundle config --local deployment 'true' \ | ||
&& bundle config --local without 'development:test' | ||
|
||
FROM base as build | ||
|
||
ARG PACKAGES='alpine-sdk libpq-dev' | ||
COPY Gemfile Gemfile.lock ./ | ||
RUN apk update \ | ||
&& apk add --update --no-cache ${PACKAGES} \ | ||
&& bundle install --no-cache \ | ||
&& bundle doctor | ||
|
||
FROM base as prod | ||
|
||
ARG PACKAGES='libpq-dev tzdata imagemagick yarn bash' | ||
COPY --from=build $RAILS_ROOT/vendor/bundle ./vendor/bundle | ||
COPY package.json yarn.lock ./ | ||
RUN apk update \ | ||
&& apk add --update --no-cache ${PACKAGES} \ | ||
&& yarn install --production --frozen-lockfile \ | ||
&& yarn cache clean | ||
COPY . ./ | ||
RUN apk update \ | ||
&& apk upgrade \ | ||
&& update-ca-certificates | ||
|
||
EXPOSE ${PORT} | ||
ENTRYPOINT [ "./bin/start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.