FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
expert-class/Dockerfile at dev · StarSheriff2/expert-class · GitHub
StarSheriff2
/
expert-class
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
5
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
expert-class
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (20 loc) · 608 Bytes
Breadcrumbs
expert-class
/
Dockerfile
Copy path
File metadata and controls
21 lines (20 loc) · 608 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
syntax=docker/dockerfile:1
FROM
ruby:3.0.2
RUN
apt-get update -qq && apt-get install -y postgresql-client
ENV
PORT=3001 \
RAILS_ENV=production \
RAILS_LOG_TO_STDOUT=true \
RAILS_SERVE_STATIC_FILES=true
#
throw errors if Gemfile has been modified since Gemfile.lock
RUN
bundle config --global frozen 1
WORKDIR
/app
COPY
Gemfile Gemfile.lock ./
RUN
gem install bundler
RUN
bundle config set --local without
'development test'
RUN
bundle install
COPY
. .
COPY
entrypoint.sh /usr/bin/
RUN
chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT
[
"entrypoint.sh"
]
EXPOSE
3001
CMD
[
"rails"
,
"server"
,
"-b"
,
"0.0.0.0"
]
Back
|
FazBrowse Home
|
New Git URL