diff --git a/prod.api.Dockerfile b/prod.api.Dockerfile new file mode 100644 index 0000000..54068c1 --- /dev/null +++ b/prod.api.Dockerfile @@ -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 \ No newline at end of file