fnmunhoz / street-comics

Simple app to navigate through all the comics ever released
0 stars 0 forks source link

chore: improve docker build #24

Closed fnmunhoz closed 3 years ago

fnmunhoz commented 3 years ago

Small improvements to make the build faster and easy to reproduce a production-like environment locally.

To run a production-like environment locally:

cd street-comics-api
docker build -t street-comics-api-production -f Dockerfile.production .
docker run -e RAILS_MASTER_KEY=<TO_REPLACE> -e PORT=8000 -p 8000:8000 street-comics-api-production

These commands can be improved in the future by using docker-compose.