mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-27 09:13:46 +08:00
Fix production Docker file [SCI-8632] (#5705)
This commit is contained in:
parent
097d217a55
commit
40f1be4552
1 changed files with 4 additions and 3 deletions
|
@ -15,7 +15,7 @@ RUN \
|
||||||
|
|
||||||
ENV APP_HOME /usr/src/app
|
ENV APP_HOME /usr/src/app
|
||||||
ENV RAILS_ENV=production
|
ENV RAILS_ENV=production
|
||||||
ENV GEM_HOME=$APP_HOME/vendor/bundle/ruby/2.7.0
|
ENV GEM_HOME=$APP_HOME/vendor/bundle/ruby/3.2.0
|
||||||
ENV PATH=$GEM_HOME/bin:$PATH
|
ENV PATH=$GEM_HOME/bin:$PATH
|
||||||
ENV BUNDLE_APP_CONFIG=.bundle
|
ENV BUNDLE_APP_CONFIG=.bundle
|
||||||
ENV BUNDLE_BUILD__SASSC=--disable-march-tune-native
|
ENV BUNDLE_BUILD__SASSC=--disable-march-tune-native
|
||||||
|
@ -29,7 +29,7 @@ RUN \
|
||||||
bundle config set path '/usr/src/app/tmp/bundle' && \
|
bundle config set path '/usr/src/app/tmp/bundle' && \
|
||||||
bundle install --jobs `nproc` && \
|
bundle install --jobs `nproc` && \
|
||||||
cp -r tmp/bundle/ vendor && \
|
cp -r tmp/bundle/ vendor && \
|
||||||
rm -rf vendor/bundle/ruby/2.7.0/cache && \
|
rm -rf vendor/bundle/ruby/3.2.0/cache && \
|
||||||
find vendor/bundle/ruby -type d -name '.git' -exec rm -rf {} + && \
|
find vendor/bundle/ruby -type d -name '.git' -exec rm -rf {} + && \
|
||||||
bundle config --local path vendor/bundle
|
bundle config --local path vendor/bundle
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ RUN \
|
||||||
libjemalloc2 \
|
libjemalloc2 \
|
||||||
groff-base \
|
groff-base \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
npm \
|
||||||
netcat-openbsd \
|
netcat-openbsd \
|
||||||
poppler-utils \
|
poppler-utils \
|
||||||
librsvg2-2 \
|
librsvg2-2 \
|
||||||
|
@ -97,7 +98,7 @@ RUN \
|
||||||
|
|
||||||
ENV APP_HOME /usr/src/app
|
ENV APP_HOME /usr/src/app
|
||||||
ENV RAILS_ENV=production
|
ENV RAILS_ENV=production
|
||||||
ENV GEM_HOME=$APP_HOME/vendor/bundle/ruby/2.7.0
|
ENV GEM_HOME=$APP_HOME/vendor/bundle/ruby/3.2.0
|
||||||
ENV PATH=$GEM_HOME/bin:$PATH
|
ENV PATH=$GEM_HOME/bin:$PATH
|
||||||
ENV BUNDLE_APP_CONFIG=.bundle
|
ENV BUNDLE_APP_CONFIG=.bundle
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue