Skip to content

Commit

Permalink
[add] prod api Dockerfile (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubasaoura authored and tsubasaoura committed Apr 23, 2023
1 parent f0638d0 commit 3222503
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions prod.api.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ruby:2.7.1
WORKDIR /myapp
ENV RAILS_ENV="production"
ENV RAILS_LOG_TO_STDOUT=ON
COPY ./api /myapp
RUN bundle install
CMD ["rails", "server", "-b", "0.0.0.0", "-p", "3000"]
EXPOSE 3000

0 comments on commit 3222503

Please sign in to comment.