Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Commit 6f33562

Browse files
committed
Dockerfile
1 parent c6af0db commit 6f33562

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.dockerignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Dockerfile
2+
3+
/.bundle
4+
5+
/log/*
6+
/tmp/*
7+
!/log/.keep
8+
!/tmp/.keep
9+
10+
/node_modules
11+
/yarn-error.log
12+
13+
.byebug_history
14+
15+
.env.*
16+
17+
.DS_Store

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from ruby:2.6
2+
3+
RUN apt update && apt install -y nodejs
4+
5+
RUN gem update --system
6+
RUN gem install bundler
7+
8+
RUN mkdir /app
9+
WORKDIR /app
10+
11+
ADD Gemfile Gemfile.lock /app/
12+
13+
RUN bundle update --bundler
14+
RUN bundle install
15+
16+
ADD . .
17+
18+
RUN mkdir -p tmp/pids
19+
20+
EXPOSE 3000
21+
22+
ENTRYPOINT ["bundle", "exec"]
23+
CMD ["puma", "-C", "config/puma.rb"]

0 commit comments

Comments
 (0)