FROM ruby:3.3 WORKDIR /app COPY Gemfile Gemfile.lock ./ RUN bundle install COPY . . EXPOSE 3000 CMD ["rails", "server", "-b", "0.0.0.0"]
FROM ruby:3.3 WORKDIR /app COPY Gemfile Gemfile.lock ./ RUN bundle install COPY . . EXPOSE 3000 CMD ["rails", "server", "-b", "0.0.0.0"]
FROM ruby:3.3 WORKDIR /app COPY Gemfile Gemfile.lock ./ RUN bundle install COPY . . EXPOSE 3000 CMD ["rails", "server", "-b", "0.0.0.0"]
services: web: build: . ports: - "3000:3000" depends_on: - db db: image: postgres:16 volumes: - pgdata:/var/lib/postgresql/data
services: web: build: . ports: - "3000:3000" depends_on: - db db: image: postgres:16 volumes: - pgdata:/var/lib/postgresql/data
services: web: build: . ports: - "3000:3000" depends_on: - db db: image: postgres:16 volumes: - pgdata:/var/lib/postgresql/data - Your team works on different operating systems
- You need consistent environments across dev, staging, and production
- You want to simplify deployment and scaling
- You're setting up a CI/CD pipeline