From the course: DevOps Foundations: Your First Project
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Creating the Dockerfile
From the course: DevOps Foundations: Your First Project
Creating the Dockerfile
- [Instructor] So let's go ahead and create a new rspec.dockerfile. Let's open it. And in the meantime, let's actually have in a separate window the docker file for our website. So in a split tab here I'm going to have /dockerfile open. Just so that I have a good reference of what I'm doing for my new docker file. So I'm going to say from ruby alpine and I just knew this from experience, however, if you want to find container images like this, you can go into the docker hub like we did earlier to find rspec. Because when you use the from line, it sources those images from the docker hub by default. So I'm going to add from ruby alpine and I'm going to say maintainer is me. Cool. So the first thing that we're going to do is we're going to tell this container to install RSpec Capybara and Selenium so we're going to use the run command to do that. And the run command that we want to run is gem install rspec capybara and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.