Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rails Build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
Rails Build
Commits
b9f6302a
Commit
b9f6302a
authored
2 years ago
by
Dean Lovett
Browse files
Options
Downloads
Patches
Plain Diff
chore: cherry picked various changes from master
parent
fb438cbb
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+23
-24
23 additions, 24 deletions
Dockerfile
with
23 additions
and
24 deletions
Dockerfile
+
23
−
24
View file @
b9f6302a
FROM
ruby:2.7.5-slim-bullseye
RUN
apt-get update
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
\
-o
Dpkg::Options::
=
"--force-confnew"
--allow-remove-essential
--allow-change-held-packages
-fuy
\
upgrade
\
&&
apt-get
install
-y
--no-install-recommends
\
cmake
\
pkg-config
\
default-libmysqlclient-dev
\
nodejs
\
curl
\
git
\
ruby-dev
\
telnet
\
nano
\
build-essential
\
libpq-dev
\
shared-mime-info
\
&&
apt-get autoremove
\
&&
apt-get autoclean
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
adduser nexus
--system
--group
-u
1000
&&
mkdir
-p
/app
&&
chown
-R
nexus:nexus /app
# Bootstrap scripts will also be used by stage 2 (rails-runtime-base-image).
COPY
/app/bootstrap*sh /app/
RUN
chmod
+x /app/bootstrap
*
sh
USER
nexus
# Install OS packages required for the gem build environment.
RUN
/app/bootstrap-apt-upgrade.sh
&&
\
apt-get
install
-y
--no-install-recommends
\
build-essential
\
cmake
\
curl
\
default-libmysqlclient-dev
\
git
\
libpq-dev
\
nano
\
nodejs
\
pkg-config
\
ruby-dev
\
shared-mime-info
\
telnet
&&
\
/app/bootstrap-apt-clean.sh
# Prepare bundle for the gem build environment.
RUN
/app/bootstrap-app-dir.sh
USER
nexus
WORKDIR
/app
COPY
--chown=nexus:nexus Gemfile Gemfile.lock ./
RUN
bundle config
--local
build.sassc
--disable-march-tune-native
&&
gem
install
bundler
-v
2.1
&&
bundle
install
--jobs
20
--retry
5
RUN
/app/bootstrap-app-bundle.sh
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment