DEV Community

Cover image for How to Deploy a Rails Application to AWS with Docker - Part 1

How to Deploy a Rails Application to AWS with Docker - Part 1

Farley Knight on February 10, 2020

Why Use Docker for Deploying to AWS? There are so many good reasons to use Docker, it would be hard to fully sell all of the benefits in...
Collapse
 
pamit profile image
Payam Mousavi

Great article!

I think after we specify the working directory in Dockerfile (WORKDIR ${APP_HOME}), we won't need to specify the directory in next commands like COPY so:

COPY Gemfile Gemfile.lock ./
...
COPY . ./
Enter fullscreen mode Exit fullscreen mode
Collapse
 
chiwenchen profile image
Chiwen • Edited

I got error when building the Dockerfile Package 'mysql-client' has no installation candidate
and change mysql-client to default-mysql-client solve the issue