mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Preinstalled gems base image (#2208)
* Builds from baseimage with gems preinstalled * Checks for changes in Gemfile * Different conditional steps for build dockerfile selection * Builds new latest gems base image if new gems are added to master
This commit is contained in:
parent
c5719a35f1
commit
00bb2ffb45
4 changed files with 83 additions and 4 deletions
19
Dockerfile.preinstalled_gems
Normal file
19
Dockerfile.preinstalled_gems
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM ghcr.io/internetee/registry:gems-latest
|
||||
LABEL org.opencontainers.image.source=https://github.com/internetee/registry
|
||||
ARG YARN_VER='1.22.10'
|
||||
ARG RAILS_ENV
|
||||
ARG SECRET_KEY_BASE
|
||||
|
||||
ENV RAILS_ENV "$RAILS_ENV"
|
||||
ENV SECRET_KEY_BASE "$SECRET_KEY_BASE"
|
||||
|
||||
RUN npm install -g yarn@"$YARN_VER"
|
||||
|
||||
RUN mkdir -p /opt/webapps/app/tmp/pids
|
||||
WORKDIR /opt/webapps/app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN bundle exec rails assets:precompile
|
||||
|
||||
EXPOSE 3000
|
Loading…
Add table
Add a link
Reference in a new issue