Skip to content

Commit ff7b018

Browse files
committed
chore(stuff): docker related
1 parent c40ec96 commit ff7b018

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ ADD Gemfile.lock /myapp/Gemfile.lock
77
RUN bundle install
88
RUN rails db:setup
99
ADD . /myapp
10-
CMD bundle exec rails s -p 3000 -b '0.0.0.0'
11-
10+
CMD bundle exec rails s -p 3000 -b '0.0.0.0'

tools/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker build -f Dockerfile -t railsgoat:latest .

tools/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker run --rm -it -p 3000:3000 railsgoat

0 commit comments

Comments
 (0)