Skip to content

Commit 492f0ea

Browse files
committed
feat: add dockerfile and composer way file
1 parent a26cea4 commit 492f0ea

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM ruby:latest
2+
3+
WORKDIR /src
4+
5+
COPY . .
6+
7+
COPY Gemfile Gemfile.lock ./
8+
9+
RUN gem install bundler
10+
11+
RUN bundle install --full-index
12+
13+
RUN rake install
14+
15+
RUN echo 'alias build="gem build bigid_auth.gemspec"' >> ~/.bashrc
16+
17+
RUN echo 'alias release="rake release"' >> ~/.bashrc
18+
19+
RUN echo 'alias release_github="gem push --key github --host https://rubygems.pkg.github.com/quasar-flash "' >> ~/.bashrc
20+
21+
CMD ["irb"]

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '3.9'
2+
services:
3+
web:
4+
build: .
5+
stdin_open: true
6+
tty: true
7+
volumes:
8+
- .:/src

0 commit comments

Comments
 (0)