pastebinner/Dockerfile

18 lines
474 B
Text
Raw Normal View History

2022-01-27 03:41:43 +00:00
# syntax=docker/dockerfile:1
FROM ruby:2.6
RUN apt-get update -qq && apt-get install -y npm nodejs postgresql-client net-tools iproute2 iputils-ping
RUN mkdir /usr/src/app
ADD . /usr/src/app
WORKDIR /usr/src/app
2019-03-28 23:12:15 -05:00
RUN gem install bundler
RUN bundle install
2022-01-27 03:41:43 +00:00
RUN npm install -g yarn
RUN yarn install --check-files
# expose the rails port
EXPOSE 3000
2019-03-28 23:12:15 -05:00
2022-01-27 03:41:43 +00:00
# Configure the main process to run when running the image
CMD ["rails", "server", "-b", "0.0.0.0"]
#CMD ["rails", "console"]