Answer the question
In order to leave comments, you need to log in
How do you use docker in development and delivery?
I am using docker while developing a Ruby on Rails application.
Dockerfile
FROM ruby:2.5.1
RUN apt-get update && apt-get install -qq -y --no-install-recommends \
build-essential \
nodejs \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /rails_app
WORKDIR /rails_app
COPY . .
RUN bundle install
Answer the question
In order to leave comments, you need to log in
Can.
Copying code to a container is used when deploying to production servers, and volume is usually forwarded during development.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question