pastebinner/Dockerfile

17 lines
474 B
Docker

# 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
RUN gem install bundler
RUN bundle install
RUN npm install -g yarn
RUN yarn install --check-files
# expose the rails port
EXPOSE 3000
# Configure the main process to run when running the image
CMD ["rails", "server", "-b", "0.0.0.0"]
#CMD ["rails", "console"]